Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PhoneApplicationService Class

July 28, 2014

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.

  NameDescription
Public methodPhoneApplicationServiceInstantiates a new instance of the PhoneApplicationService class.
Top

  NameDescription
Public propertyApplicationIdleDetectionModeGets or sets whether application idle detection is enabled.
Public propertyStatic memberCurrentGets the PhoneApplicationService object associated with the current application.
Public propertyStartupModeGets the mode in which the application was started.
Public propertyStateGets the dictionary used for passing an application’s state between invocations.
Public propertyUserIdleDetectionModeGets or sets whether user idle detection is enabled.
Top

  NameDescription
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 the Object 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.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStartServiceThis method is used by the underlying implementation of the PhoneApplicationService and should not be used by applications.
Public methodStopServiceThis method is used by the underlying implementation of the PhoneApplicationService and should not be used by applications.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventActivatedOccurs when the application is being made active after previously being put into a dormant state or tombstoned.
Public eventClosingOccurs when the application is exiting.
Public eventContractActivatedOccurs when the app receives a modern contract activation.
Public eventDeactivatedOccurs when the application is being deactivated.
Public eventLaunchingOccurs when the application is being launched.
Public eventRunningInBackgroundOccurs when an app begins to run in the background.
Top

Windows Phone OS

Supported in: 8.1, 8.0, 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.

Show:
© 2014 Microsoft