RuleEvaluationIncompatibleTypesException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 RuleEvaluationIncompatibleTypesException 类的新实例。
重载
RuleEvaluationIncompatibleTypesException()
初始化 RuleEvaluationIncompatibleTypesException 类的新实例。
public:
RuleEvaluationIncompatibleTypesException();
public RuleEvaluationIncompatibleTypesException ();
Public Sub New ()
适用于
RuleEvaluationIncompatibleTypesException(String)
用指定的错误消息初始化 RuleEvaluationIncompatibleTypesException 的新实例。
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)
参数
- message
- String
包含要与此实例关联的错误消息的 string
。
注解
此构造函数使用消息参数初始化新实例的 Message 属性。
下表显示 Exception 实例的初始属性值。
properties | 值 |
---|---|
InnerException | 空引用(在 Visual Basic 中为 Nothing )。 |
Message | 错误消息字符串。 |
适用于
RuleEvaluationIncompatibleTypesException(SerializationInfo, StreamingContext)
用序列化数据初始化 RuleEvaluationIncompatibleTypesException 类的新实例。
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)
参数
- serializeInfo
- SerializationInfo
包含有关所引发异常的序列化对象数据的 SerializationInfo。
- context
- StreamingContext
StreamingContext,它包含关于源或目标的上下文信息。
例外
serializeInfo
为空引用(在 Visual Basic 中为 Nothing
)。
类名为空引用(在 Visual Basic 中为 Nothing
)或者 HResult 为零。
注解
在反序列化过程中调用此构造函数来重建通过流传输的异常对象。
适用于
RuleEvaluationIncompatibleTypesException(String, Exception)
使用指定的错误消息和对导致此 RuleEvaluationIncompatibleTypesException 的内部 Exception 的引用初始化 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)
参数
- message
- String
描述当前异常的消息。
注解
作为前一个 Exception 的直接结果而引发的 Exception 应在 InnerException 属性中包括对前一个异常的引用。 InnerException 属性返回传递到构造函数中的相同值,或者如果 Nothing
属性不向构造函数提供内部异常值,则为空引用(在 Visual Basic 中为 InnerException)。
适用于
RuleEvaluationIncompatibleTypesException(String, Type, CodeBinaryOperatorType, Type)
用兼容性冲突的详细信息初始化 RuleEvaluationIncompatibleTypesException 类的新实例。
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)
参数
表示兼容性发生冲突的运算符的 CodeBinaryOperatorType。
注解
下表显示了由此类表示的 Exception 实例的初始属性值。
properties | 值 |
---|---|
InnerException | 空引用(在 Visual Basic 中为 Nothing )。 |
Message | 自变量 message 的值 |
Left | 自变量 left. 的值 |
Operator | 自变量 op. 的值 |
Right | 自变量 right. 的值 |
适用于
RuleEvaluationIncompatibleTypesException(String, Type, CodeBinaryOperatorType, Type, Exception)
用兼容性冲突的详细信息初始化 RuleEvaluationIncompatibleTypesException 类的新实例。 其中包括 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)
参数
表示兼容性发生冲突的运算符的 CodeBinaryOperatorType。
注解
下表显示了由此类表示的 Exception 实例的初始属性值。
properties | “值” |
---|---|
InnerException | 自变量 ex. 的值 |
Message | 自变量 message 的值 |
Left | 自变量 left. 的值 |
Operator | 自变量 op. 的值 |
Right | 自变量 right. 的值 |