_Exception.Source _Exception.Source _Exception.Source _Exception.Source Property

定義

為 COM 物件提供與版本無關的 Source 屬性之存取權。Provides COM objects with version-independent access to the Source property.

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

屬性值

造成錯誤的應用程式或物件的名稱。The name of the application or the object that causes the error.

備註

這個方法會從 unmanaged 程式碼會存取 managed 類別,並不會呼叫從 managed 程式碼。This method is for access to managed classes from unmanaged code and should not be called from managed code.

Exception.Source屬性會取得或設定應用程式或導致錯誤的物件名稱。The Exception.Source property gets or sets the name of the application or the object that causes the error.

適用於

另請參閱