PhoneApplicationService Constructor

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

Instantiates a new instance of the PhoneApplicationService class.

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

Syntax

Public Sub New
public PhoneApplicationService()

Remarks

The default project template for Windows Phone applications manages the creation of this object automatically. You can access the object by using the static Current property of the PhoneApplicationService object. Only one instance of this class can exist at a time. Attempting to create another instance will result in an InvalidOperationException.

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