Share via


PropertyConstraintException 建構函式

定義

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

多載

PropertyConstraintException()

使用預設訊息,初始化 PropertyConstraintException 類別的新執行個體。

PropertyConstraintException(String)

使用提供的訊息,初始化 PropertyConstraintException 類別的新執行個體。

PropertyConstraintException(String, Exception)

使用提供的訊息和內部例外狀況,初始化 PropertyConstraintException 類別的新執行個體。

PropertyConstraintException(String, String)

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

PropertyConstraintException(String, String, Exception)

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

PropertyConstraintException()

使用預設訊息,初始化 PropertyConstraintException 類別的新執行個體。

public:
 PropertyConstraintException();
public PropertyConstraintException ();
Public Sub New ()

適用於

PropertyConstraintException(String)

使用提供的訊息,初始化 PropertyConstraintException 類別的新執行個體。

public:
 PropertyConstraintException(System::String ^ message);
public PropertyConstraintException (string message);
new System.Data.PropertyConstraintException : string -> System.Data.PropertyConstraintException
Public Sub New (message As String)

參數

message
String

當地語系化的錯誤訊息。

適用於

PropertyConstraintException(String, Exception)

使用提供的訊息和內部例外狀況,初始化 PropertyConstraintException 類別的新執行個體。

public:
 PropertyConstraintException(System::String ^ message, Exception ^ innerException);
public PropertyConstraintException (string message, Exception innerException);
new System.Data.PropertyConstraintException : string * Exception -> System.Data.PropertyConstraintException
Public Sub New (message As String, innerException As Exception)

參數

message
String

當地語系化的錯誤訊息。

innerException
Exception

內部例外狀況。

適用於

PropertyConstraintException(String, String)

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

public:
 PropertyConstraintException(System::String ^ message, System::String ^ propertyName);
public PropertyConstraintException (string message, string propertyName);
new System.Data.PropertyConstraintException : string * string -> System.Data.PropertyConstraintException
Public Sub New (message As String, propertyName As String)

參數

message
String

當地語系化的錯誤訊息。

propertyName
String

屬性的名稱。

適用於

PropertyConstraintException(String, String, Exception)

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

public:
 PropertyConstraintException(System::String ^ message, System::String ^ propertyName, Exception ^ innerException);
public PropertyConstraintException (string message, string propertyName, Exception innerException);
new System.Data.PropertyConstraintException : string * string * Exception -> System.Data.PropertyConstraintException
Public Sub New (message As String, propertyName As String, innerException As Exception)

參數

message
String

當地語系化的錯誤訊息。

propertyName
String

屬性的名稱。

innerException
Exception

內部例外狀況。

適用於