AddInSegmentDirectoryNotFoundException 建構函式

定義

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

多載

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 null 參考 (在 Visual Basic 中為 Nothing)。
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 null 參考 (在 Visual Basic 中為 Nothing)。
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 null 參考 (在 Visual Basic 中為 Nothing)。
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 屬性未提供內部例外狀況值給建構函式,則傳回 Null 參考。

下表顯示 AddInSegmentDirectoryNotFoundException 類別執行個體的初始屬性值。

屬性
InnerException 內部例外狀況參考。
Message 當地語系化的錯誤訊息字串。

適用於