RuleEvaluationIncompatibleTypesException 建構函式

定義

初始化 RuleEvaluationIncompatibleTypesException 類別的新執行個體。

多載

RuleEvaluationIncompatibleTypesException()

初始化 RuleEvaluationIncompatibleTypesException 類別的新執行個體。

RuleEvaluationIncompatibleTypesException(String)

使用指定的錯誤訊息,初始化 RuleEvaluationIncompatibleTypesException 的新執行個體。

RuleEvaluationIncompatibleTypesException(SerializationInfo, StreamingContext)

使用序列化資料,初始化 RuleEvaluationIncompatibleTypesException 類別的新執行個體。

RuleEvaluationIncompatibleTypesException(String, Exception)

使用指定的錯誤訊息和造成 RuleEvaluationIncompatibleTypesException 之內部 Exception 的參考,初始化 Exception 類別的新執行個體。

RuleEvaluationIncompatibleTypesException(String, Type, CodeBinaryOperatorType, Type)

使用相容性違規的詳細資訊,初始化 RuleEvaluationIncompatibleTypesException 類別的新執行個體。

RuleEvaluationIncompatibleTypesException(String, Type, CodeBinaryOperatorType, Type, Exception)

使用相容性違規的詳細資訊,初始化 RuleEvaluationIncompatibleTypesException 類別的新執行個體。 這包括 InnerException

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 執行個體的初始屬性值。

屬性
InnerException null 參考 (在 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 為 null 參考 (在 Visual Basic 中為 Nothing)。

類別名稱是 null 參考 (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

描述目前例外狀況的訊息。

ex
Exception

造成目前例外狀況的 Exception 執行個體。

備註

被擲回做為前一個 Exception 直接結果的 Exception 應該在 InnerException 屬性中包含前一個例外狀況的參考。 InnerException 屬性會傳回與傳入建構函式中相同的值;如果 Nothing 屬性不提供內部例外值給建構函式,則傳回 null 參考 (在 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)

參數

message
String

描述目前 Exception 的訊息。

left
Type

出現在運算子左方的 Type

op
CodeBinaryOperatorType

CodeBinaryOperatorType,代表其相容性違規的運算子。

right
Type

出現在運算子右方的 Type

備註

下表顯示此類別所代表之 Exception 執行個體的初始屬性值。

屬性
InnerException null 參考 (在 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)

參數

message
String

描述目前 Exception 的訊息。

left
Type

出現在運算子左方的 Type

op
CodeBinaryOperatorType

CodeBinaryOperatorType,代表其相容性違規的運算子。

right
Type

出現在運算子右方的 Type

ex
Exception

造成目前例外狀況的 Exception 執行個體。

備註

下表顯示此類別所代表之 Exception 執行個體的初始屬性值。

屬性
InnerException ex. 引數的值。
Message message 引數的值。
Left left. 引數的值。
Operator op. 引數的值。
Right right. 引數的值。

適用於