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

Adds an event handler for the System.WinForms.Application.ThreadException event.

[Visual Basic]
Public Shared Sub AddOnThreadException( _
   ByVal handler As ThreadExceptionEventHandler _
)
[C#]
public static void AddOnThreadException(
   ThreadExceptionEventHandler handler
);
[C++]
public: static void AddOnThreadException(
   ThreadExceptionEventHandler* handler
);
[JScript]
public static function AddOnThreadException(
   handler : ThreadExceptionEventHandler
);

Parameters

handler
The System.WinForms.ThreadExceptionEventHandler delegate that represents the method that will handle the System.WinForms.App.Application.ThreadException event.

Remarks

System.WinForms.Application.ThreadException handlers are unique to a specific thread.

Requirements

NGWS Runtime Security:

UIPermission You must have the System.security.Permissions.UIPermission for AllWindows to set this method.

See Also

Application Class | Application Members | System.WinForms Namespace