This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Application Members
Public:
Properties
CommonAppDataRegistry |
Gets the registry key for the application data that is shared among all users. |
CommonUserAppDataPath |
Gets the path for the application data that is shared among all users. |
CompanyName |
Gets the company name associated with the application. |
CurrentCulture |
Gets or sets the locale information for the current thread. |
CurrentInputLanguage |
Gets or sets the current input language for the current thread. |
LocalUserAppDataPath |
Gets the path for the application data specific to a local, non-roaming user. |
MyDocuments |
Gets the path for the user documents. |
ProductName |
Gets the product name associated with this application. |
ProductVersion |
Gets the product version associated with this application. |
SafeTopLevelCaptionSuffix |
Gets or sets the format string to apply to top level window captions when they are displayed with a warning banner. |
StartupPath |
Gets the path for the executable file that started the application. |
UserAppDataPath |
Gets the path for the application data specific to the roaming user. |
UserAppDataRegistry |
Gets the registry key of the application data specific to the roaming user. |
Methods
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. |
Events
ApplicationExit |
Occurs when the application is about to shut down. |
Idle |
Occurs when the application has finished processing and is about to enter the idle state. |
ThreadException |
Occurs when an untrapped thread exception is thrown. |
Protected:
Methods
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:
Methods
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