2 out of 2 rated this helpful - Rate this topic

PhoneApplicationService Class

Windows Phone

March 22, 2012

The PhoneApplicationService class provides access to various aspects of the application’s lifetime. This includes management of the application’s idle behavior and management of the application’s state when it becomes active or inactive.

System.Object
  Microsoft.Phone.Shell.PhoneApplicationService

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public class PhoneApplicationService : IApplicationService
<PhoneApplicationService .../>

The PhoneApplicationService type exposes the following members.

  Name Description
Public method PhoneApplicationService Instantiates a new instance of the PhoneApplicationService class.
Top
  Name Description
Public property ApplicationIdleDetectionMode Gets or sets whether application idle detection is enabled.
Public property Static member Current Gets the PhoneApplicationService object associated with the current application.
Public property StartupMode Gets the mode in which the application was started.
Public property State Gets the dictionary used for passing an application’s state between invocations.
Public property UserIdleDetectionMode Gets or sets whether user idle detection is enabled.
Top
  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method StartService This method is used by the underlying implementation of the PhoneApplicationService and should not be used by applications.
Public method StopService This method is used by the underlying implementation of the PhoneApplicationService and should not be used by applications.
Public method ToString (Inherited from Object.)
Top
  Name Description
Public event Activated Occurs when the application is being made active after previously being put into a dormant state or tombstoned.
Public event Closing Occurs when the application is exiting.
Public event Deactivated Occurs when the application is being deactivated.
Public event Launching Occurs when the application is being launched.
Top

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

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

Did you find this helpful?
(1500 characters remaining)