Skip to main content

Windows Dev Center

CurrentAppSimulator.AppId | appId property

Gets a simulated app ID. Since CurrentAppSimulator is intended only for testing during app development, the returned CurrentAppSimulator.AppId will contain only 0's.

Once your app is listed on the Windows Store, CurrentApp.AppId will get the GUID generated during app on-boarding and used to list your app within the Windows Store catalog.

Note  App updates or changes to the app description will not result in a change to the CurrentApp.AppId.

Syntax


var appId = Windows.ApplicationModel.Store.CurrentAppSimulator.appId;

public static Guid AppId { get; }

Public Shared ReadOnly Property AppId As Guid

public:
static property Guid AppId { 
   Guid get();
}

Property value

Type: String [JavaScript] | System.Guid [.NET] | Platform::Guid [C++]

The GUID that identifies the app in the Windows Store.

Remarks

Uses the CurrentApp/AppId element in the WindowsStoreProxy.xml file as the data source for the members of the returned object. For more info, see the code examples in CurrentAppSimulator.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.ApplicationModel.Store
Windows::ApplicationModel::Store [C++]

Metadata

Windows.winmd

See also

CurrentAppSimulator