NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Application.OnThreadException

Raises the System.WinForms.Application.ThreadException event.

[Visual Basic]
Public Shared Sub OnThreadException( _
   ByVal t As Exception _
)
[C#]
public static void OnThreadException(
   Exception t
);
[C++]
public: static void OnThreadException(
   Exception* t
);
[JScript]
public static function OnThreadException(
   t : Exception
);

Parameters

t
An Exception that represents the exception that was thrown.

Remarks

This event allows an application to intelligently handle an exception. It is called by a window procedure when it receives a thread exception. You should attach your event-handling methods to this event.

Raising an event invokes the event-handling method through a delegate. For an overview, see TBD.

Notes to Inheritors: When overriding OnThreadException in a derived class, be sure to call the base class's OnThreadException method.

See Also

Application Class | Application Members | System.WinForms Namespace | AddOnThreadException