Uredi

Deli z drugimi prek


_Exception.TargetSite Property

Definition

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

Property Value

The MethodBase object that threw the current exception.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The Exception.TargetSite property gets the method that throws the current exception.

Applies to

See also