PropertyConstraintException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 PropertyConstraintException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| PropertyConstraintException() |
初始化一個新的類別實例 PropertyConstraintException ,並使用預設訊息。 |
| PropertyConstraintException(String) |
初始化該類別的新實例 PropertyConstraintException ,並以所提供的訊息。 |
| PropertyConstraintException(String, Exception) |
初始化一個新的類別實例 PropertyConstraintException ,並帶有 sserved message 與內部例外。 |
| 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 ,並帶有 sserved message 與內部例外。
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
內心的例外。