RuleEvaluationIncompatibleTypesException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the RuleEvaluationIncompatibleTypesException class.
Overloads
RuleEvaluationIncompatibleTypesException()
Initializes a new instance of the RuleEvaluationIncompatibleTypesException class.
public:
RuleEvaluationIncompatibleTypesException();
public RuleEvaluationIncompatibleTypesException ();
Public Sub New ()
Applies to
RuleEvaluationIncompatibleTypesException(String)
Initializes a new instance of the RuleEvaluationIncompatibleTypesException with a specified error message.
public:
RuleEvaluationIncompatibleTypesException(System::String ^ message);
public RuleEvaluationIncompatibleTypesException (string message);
new System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException : string -> System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
Public Sub New (message As String)
Parameters
- message
- String
A string
that contains the error message to associate with this instance.
Remarks
This constructor initializes the Message property of the new instance using the message parameter.
The following table shows the initial property values for an instance of Exception.
Property | Value |
---|---|
InnerException | A null reference (Nothing in Visual Basic). |
Message | The error message string. |
Applies to
RuleEvaluationIncompatibleTypesException(SerializationInfo, StreamingContext)
Initializes a new instance of the RuleEvaluationIncompatibleTypesException class with serialized data.
protected:
RuleEvaluationIncompatibleTypesException(System::Runtime::Serialization::SerializationInfo ^ serializeInfo, System::Runtime::Serialization::StreamingContext context);
protected RuleEvaluationIncompatibleTypesException (System.Runtime.Serialization.SerializationInfo serializeInfo, System.Runtime.Serialization.StreamingContext context);
new System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
Protected Sub New (serializeInfo As SerializationInfo, context As StreamingContext)
Parameters
- serializeInfo
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Exceptions
serializeInfo
is a null reference (Visual Basic Nothing
).
The class name is a null reference (Visual Basic Nothing
) or the HResult is zero.
Remarks
This constructor is called during de-serialization to reconstitute the exception object transmitted over a stream.
Applies to
RuleEvaluationIncompatibleTypesException(String, Exception)
Initializes a new instance of the RuleEvaluationIncompatibleTypesException class with a specified error message and a reference to the inner Exception that is the cause of this Exception.
public:
RuleEvaluationIncompatibleTypesException(System::String ^ message, Exception ^ ex);
public RuleEvaluationIncompatibleTypesException (string message, Exception ex);
new System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException : string * Exception -> System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
Public Sub New (message As String, ex As Exception)
Parameters
- message
- String
A message that describes the current exception.
Remarks
An Exception that is thrown as a direct result of a previous Exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or a null reference (Nothing
in Visual Basic) if the InnerException property does not supply the inner exception value to the constructor.
Applies to
RuleEvaluationIncompatibleTypesException(String, Type, CodeBinaryOperatorType, Type)
Initializes a new instance of the RuleEvaluationIncompatibleTypesException class with the details of the compatibility violation.
public:
RuleEvaluationIncompatibleTypesException(System::String ^ message, Type ^ left, System::CodeDom::CodeBinaryOperatorType op, Type ^ right);
public RuleEvaluationIncompatibleTypesException (string message, Type left, System.CodeDom.CodeBinaryOperatorType op, Type right);
new System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException : string * Type * System.CodeDom.CodeBinaryOperatorType * Type -> System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
Public Sub New (message As String, left As Type, op As CodeBinaryOperatorType, right As Type)
Parameters
The CodeBinaryOperatorType representing the operator whose compatibility is violated.
Remarks
The following table shows the initial property values for an instance of Exception represented by this class.
Property | Value |
---|---|
InnerException | A null reference (Nothing in Visual Basic). |
Message | The value of the argument message |
Left | The value of the argument left . |
Operator | The value of the argument op . |
Right | The value of the argument right . |
Applies to
RuleEvaluationIncompatibleTypesException(String, Type, CodeBinaryOperatorType, Type, Exception)
Initializes a new instance of the RuleEvaluationIncompatibleTypesException class with the details of the compatibility violation. This includes the InnerException.
public:
RuleEvaluationIncompatibleTypesException(System::String ^ message, Type ^ left, System::CodeDom::CodeBinaryOperatorType op, Type ^ right, Exception ^ ex);
public RuleEvaluationIncompatibleTypesException (string message, Type left, System.CodeDom.CodeBinaryOperatorType op, Type right, Exception ex);
new System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException : string * Type * System.CodeDom.CodeBinaryOperatorType * Type * Exception -> System.Workflow.Activities.Rules.RuleEvaluationIncompatibleTypesException
Public Sub New (message As String, left As Type, op As CodeBinaryOperatorType, right As Type, ex As Exception)
Parameters
The CodeBinaryOperatorType representing the operator whose compatibility is violated.
Remarks
The following table shows the initial property values for an instance of Exception represented by this class.
Property | Value |
---|---|
InnerException | The value of the argument ex . |
Message | The value of the argument message |
Left | The value of the argument left . |
Operator | The value of the argument op . |
Right | The value of the argument right . |