_Exception.Source 屬性

定義

為 COM 物件提供與版本無關的 Source 屬性之存取權。

public:
 property System::String ^ Source { System::String ^ get(); void set(System::String ^ value); };
public string Source { get; set; }
member this.Source : string with get, set
Public Property Source As String

屬性值

造成錯誤的應用程式或物件的名稱。

備註

這個方法適用於從 Unmanaged 程式代碼存取 Managed 類別,不應從 Managed 程式代碼呼叫。

屬性 Exception.Source 會取得或設定應用程式的名稱或造成錯誤的物件。

適用於

另請參閱