AddInSegmentDirectoryNotFoundException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 AddInSegmentDirectoryNotFoundException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| AddInSegmentDirectoryNotFoundException() |
初始化 AddInSegmentDirectoryNotFoundException 類別的新執行個體。 |
| AddInSegmentDirectoryNotFoundException(String) |
使用指定的訊息,初始化 AddInSegmentDirectoryNotFoundException 類別的新實例。 |
| AddInSegmentDirectoryNotFoundException(SerializationInfo, StreamingContext) |
初始化類別的新實例 AddInSegmentDirectoryNotFoundException ,並使用序列化資料。 |
| AddInSegmentDirectoryNotFoundException(String, Exception) |
初始化類別的新實例 AddInSegmentDirectoryNotFoundException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。 |
AddInSegmentDirectoryNotFoundException()
初始化 AddInSegmentDirectoryNotFoundException 類別的新執行個體。
public:
AddInSegmentDirectoryNotFoundException();
public AddInSegmentDirectoryNotFoundException();
Public Sub New ()
備註
此建構子會將新實例的屬性初始 Message 化為系統提供的訊息,描述錯誤(例如:「目標應用域已被卸載。」)。 這個訊息會考慮到現行系統文化。
下表顯示該 AddInSegmentDirectoryNotFoundException 類別實例的初始屬性值。
| 房產 | 價值觀 |
|---|---|
| InnerException | 一個空參考(Nothing Visual Basic 中的 Reference)。 |
| Message | 區域化錯誤訊息字串。 |
適用於
AddInSegmentDirectoryNotFoundException(String)
使用指定的訊息,初始化 AddInSegmentDirectoryNotFoundException 類別的新實例。
public:
AddInSegmentDirectoryNotFoundException(System::String ^ message);
public AddInSegmentDirectoryNotFoundException(string message);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : string -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Public Sub New (message As String)
參數
- message
- String
一則描述錯誤的訊息。
備註
下表顯示該 AddInSegmentDirectoryNotFoundException 類別實例的初始屬性值。
| 房產 | 價值觀 |
|---|---|
| InnerException | 一個空參考(Nothing Visual Basic 中的 Reference)。 |
| Message | 區域化錯誤訊息字串。 |
適用於
AddInSegmentDirectoryNotFoundException(SerializationInfo, StreamingContext)
初始化類別的新實例 AddInSegmentDirectoryNotFoundException ,並使用序列化資料。
protected:
AddInSegmentDirectoryNotFoundException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected AddInSegmentDirectoryNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
存放序列化物件資料的物件。
- context
- StreamingContext
關於來源或目的物件資料的上下文資訊。
備註
此建構子在反序列化過程中被呼叫,以重建一個透過串流傳輸的例外物件。 欲了解更多資訊,請參閱 XML 與 SOAP 序列化。
下表顯示該 AddInSegmentDirectoryNotFoundException 類別實例的初始屬性值。
| 房產 | 價值觀 |
|---|---|
| InnerException | 一個空參考(Nothing Visual Basic 中的 Reference)。 |
| Message | 區域化錯誤訊息字串。 |
適用於
AddInSegmentDirectoryNotFoundException(String, Exception)
初始化類別的新實例 AddInSegmentDirectoryNotFoundException ,並附上指定的錯誤訊息及導致該異常的內部例外的參考。
public:
AddInSegmentDirectoryNotFoundException(System::String ^ message, Exception ^ innerException);
public AddInSegmentDirectoryNotFoundException(string message, Exception innerException);
new System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException : string * Exception -> System.AddIn.Hosting.AddInSegmentDirectoryNotFoundException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
一則描述錯誤的訊息。
- innerException
- Exception
該例外即為當前例外的原因。 若參數 innerException 非 null 參考,則在處理內部例外的 catch 區塊中提出當前例外。
備註
因先前例外直接拋出的例外,應包含對該屬性中 InnerException 先前例外的參考。 該 InnerException 屬性會回傳與傳給建構子相同的值;若該 InnerException 屬性未提供內部例外值,則回傳為空參考。
下表顯示該 AddInSegmentDirectoryNotFoundException 類別實例的初始屬性值。
| 房產 | 價值觀 |
|---|---|
| InnerException | 內部例外的參考。 |
| Message | 區域化錯誤訊息字串。 |