_Exception.TargetSite 屬性

定義

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

public:
 property System::Reflection::MethodBase ^ TargetSite { System::Reflection::MethodBase ^ get(); };
public System.Reflection.MethodBase TargetSite { get; }
member this.TargetSite : System.Reflection.MethodBase
Public ReadOnly Property TargetSite As MethodBase

屬性值

擲回目前例外狀況的 MethodBase 物件。The MethodBase object that threw the current exception.

備註

這個方法是用來從非受控程式碼存取 managed 類別,而且不應該從 managed 程式碼呼叫。This method is for access to managed classes from unmanaged code and should not be called from managed code.

@No__t-0 屬性會取得擲回目前例外狀況的方法。The Exception.TargetSite property gets the method that throws the current exception.

適用於

另請參閱