_Exception.TargetSite _Exception.TargetSite _Exception.TargetSite _Exception.TargetSite Property

定义

为 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.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。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.

适用于

另请参阅