Application Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Encapsulates application-specific functionality, including application lifetime events and application-scope window management.

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

public class Application : DispatcherObject, 

The Application type exposes the following members.

Public methodApplicationCreates an instance of the Application class.

Public propertyStatic memberCurrentGets the Application object for the current application domain.
Public propertyMainWindowGets or sets the main window of the current application.
Public propertyShutdownModeGets or sets the condition that causes the Shutdown method to be called.
Public propertyWindowsGets the instantiated windows in the current application.

Public methodCheckAccessDetermines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeForEventSourceInitializes the input objects needed to process events.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOnEventProcesses known events, and forwards unrecognized ones as generic events.
Protected methodOnExitRaises the Exit event.
Protected methodOnStartupRaises the Startup event.
Public methodRun()()()()Starts a Windows Presentation Foundation (WPF) application.
Public methodRun(Window)Starts a Windows Presentation Foundation (WPF) application and opens a specified window.
Public methodShutdownCauses an application to exit.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodVerifyAccessDetermines whether the calling thread has access to the current DispatcherObject object. (Inherited from DispatcherObject.)

Public eventExitOccurs just before an application exits.
Public eventStartupOccurs when the Run method of an Application object is called.

Public fieldDispatcherContains the Dispatcher object that the current DispatcherObject object is associated with. (Inherited from DispatcherObject.)

Each instance of the Application class is a singleton object whose application-scope services are shared across a single application domain. Consequently, only one Application object can be created per AppDomain object. To enable shared access, the Application class provides the static Current property, which returns a reference to the Application object for the current AppDomain object.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.