OciException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 OciException 類別的新實例。
多載
| 名稱 | Description |
|---|---|
| OciException() |
建立 OciException 類別的新實例。 |
| OciException(String) |
建立一個新的類別實例 OciException ,並指定錯誤訊息。 |
| OciException(SerializationInfo, StreamingContext) |
建立一個帶有序列化資料的新 OciException 類別實例。 |
| OciException(String, Exception) |
建立一個新的類別實例 OciException ,並附上指定的錯誤訊息及對導致該異常的內部例外的參考。 |
OciException()
建立 OciException 類別的新實例。
public:
OciException();
public OciException();
Public Sub New ()
備註
此建構器將新實例的屬性初始 Message 化為系統提供的訊息,描述錯誤。
下表顯示了 的 OciException初始屬性值。
| 房產 | 值 |
|---|---|
| InnerException | 一個空參考。 |
| Message | 系統提供的在地描述。 |
適用於
OciException(String)
建立一個新的類別實例 OciException ,並指定錯誤訊息。
public:
OciException(System::String ^ message);
public OciException(string message);
new Microsoft.SqlServer.Replication.OciException : string -> Microsoft.SqlServer.Replication.OciException
Public Sub New (message As String)
參數
- message
- String
一則描述錯誤的訊息。
備註
下表顯示了 的 OciException初始屬性值。
| 房產 | 值 |
|---|---|
| InnerException | 一個空參考。 |
| Message | 錯誤訊息字串。 |
適用於
OciException(SerializationInfo, StreamingContext)
建立一個帶有序列化資料的新 OciException 類別實例。
protected:
OciException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected OciException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Replication.OciException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Replication.OciException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
存放序列化物件資料的物件。
- context
- StreamingContext
關於來源或目的地的上下文資訊。
備註
此建構子在反序列化過程中被呼叫,以重建透過串流傳輸的例外物件。
適用於
OciException(String, Exception)
建立一個新的類別實例 OciException ,並附上指定的錯誤訊息及對導致該異常的內部例外的參考。
public:
OciException(System::String ^ message, Exception ^ innerException);
public OciException(string message, Exception innerException);
new Microsoft.SqlServer.Replication.OciException : string * Exception -> Microsoft.SqlServer.Replication.OciException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
說明例外狀況原因的錯誤訊息。
- innerException
- Exception
該例外即為當前例外的原因。
備註
下表顯示了 的 OciException初始屬性值。
| 房產 | 值 |
|---|---|
| InnerException | 內部例外的參考。 |
| Message | 錯誤訊息字串。 |