asp.net.ph

Exception.TargetSite Property

System Namespace   Exception Class


Returns the method that throws the current exception.

[ VB ]
<Serializable>
<ClassInterface ( ClassInterfaceType.AutoDual ) >
Public ReadOnly Property TargetSite As MethodBase

[ C# ]
[ Serializable ]
[ ClassInterface ( ClassInterfaceType.AutoDual ) ]
public MethodBase TargetSite {get;}

[ C++ ]
[ Serializable ]
[ ClassInterface ( ClassInterfaceType.AutoDual ) ]
public: __property MethodBase* get_TargetSite ( );

[ JScript ]
public Serializable
   ClassInterface ( ClassInterfaceType.AutoDual )
function get TargetSite ( ) : MethodBase;

Property Value

The MethodBase that threw the current exception.

Remarks

If the method that throws this exception is not available and the stack trace is not a null reference ( Nothing in Visual Basic ), TargetSite obtains the method from the stack trace. If the stack trace is a null reference, TargetSite also returns a null reference.

See Also

Exception Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph