Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

_Exception::TargetSite Property

 

Provides COM objects with version-independent access to the Exception::TargetSite property.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

property MethodBase^ TargetSite {
	MethodBase^ get();
}

Property Value

Type: System.Reflection::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.

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

.NET Framework
Available since 2.0
Return to top
Show: