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 Methods

The methods of the Application class are listed below. For a complete list of Application class members, see the Application Members topic.

Public:

AddMessageFilter Adds a message filter to monitor Windows messages as they are routed to their destinations.
DoEvents Overloaded. Processes Windows messages currently in the message queue.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Exit Exits the application.
ExitThread Exits the message loop on the current thread and closes all windows on the thread.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
OLERequired Initializes OLE on the current thread.
OnThreadException Raises the System.WinForms.Application.ThreadException event.
RemoveMessageFilter Removes a message filter from the application's message pump.
Run Overloaded. Begins running a standard application message loop on the current thread.
SetProcessInputLanguage Sets the input language and keyboard layout for the process.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Event Hookup:

AddOnApplicationExit Adds an event handler for the Exit event.
AddOnIdle Adds an event handler for the System.WinForms.Application.Idle event for the current thread.
AddOnThreadException Adds an event handler for the System.WinForms.Application.ThreadException event.
RemoveOnApplicationExit Removes an event handler associated with the System.WinForms.Application.ApplicationExit event.
RemoveOnIdle Removes an event handler associated with the System.WinForms.Application.Idle event.
RemoveOnThreadException Removes an event handler associated with the System.WinForms.Application.ThreadException event.

See Also

Application Class | System.WinForms Namespace