PhoneApplicationService.Current Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the PhoneApplicationService object associated with the current application.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Shared Property Current As PhoneApplicationService
public static PhoneApplicationService Current { get; private set; }

Property Value

Type: Microsoft.Phone.Shell..::.PhoneApplicationService
Type: PhoneApplicationService.

Remarks

The Windows Phone project templates that are included with Windows Phone SDK provide an initialized instance of PhoneApplicationService. You should never need to create a new instance yourself.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

PhoneApplicationService Class

Microsoft.Phone.Shell Namespace