SqlTypeException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 SqlTypeException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| SqlTypeException() |
初始化 SqlTypeException 類別的新執行個體。 |
| SqlTypeException(String) |
使用指定的錯誤訊息,初始化 SqlTypeException 類別的新實例。 |
| SqlTypeException(SerializationInfo, StreamingContext) |
使用串行化數據,初始化 SqlTypeException 類別的新實例。 |
| SqlTypeException(String, Exception) |
初始化類別的新實例 SqlTypeException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。 |
SqlTypeException()
初始化 SqlTypeException 類別的新執行個體。
public:
SqlTypeException();
public SqlTypeException();
Public Sub New ()
適用於
SqlTypeException(String)
使用指定的錯誤訊息,初始化 SqlTypeException 類別的新實例。
public:
SqlTypeException(System::String ^ message);
public SqlTypeException(string message);
new System.Data.SqlTypes.SqlTypeException : string -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String)
參數
- message
- String
說明例外狀況原因的錯誤訊息。
適用於
SqlTypeException(SerializationInfo, StreamingContext)
使用串行化數據,初始化 SqlTypeException 類別的新實例。
protected:
SqlTypeException(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext sc);
protected SqlTypeException(System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc);
new System.Data.SqlTypes.SqlTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SqlTypes.SqlTypeException
Protected Sub New (si As SerializationInfo, sc As StreamingContext)
參數
存放序列化物件資料的物件。
關於來源或目的地的上下文資訊。
備註
此建構子在反序列化過程中被呼叫,以重建透過串流傳輸的例外物件。 欲了解更多資訊,請參閱 XML 與 SOAP 序列化。
另請參閱
適用於
SqlTypeException(String, Exception)
初始化類別的新實例 SqlTypeException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。
public:
SqlTypeException(System::String ^ message, Exception ^ e);
public SqlTypeException(string message, Exception e);
new System.Data.SqlTypes.SqlTypeException : string * Exception -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String, e As Exception)
參數
- message
- String
描述例外的訊息。 此建構器的呼叫者必須確保此字串已在目前系統文化中本地化。
該例外即為當前例外的原因。 若 innerException 參數不 null為 ,則在處理內部異常的區塊中提出 catch 當前例外。