Share via


CurrentAppSimulator.AppId 屬性

定義

取得模擬的應用程式識別碼。 由於 CurrentAppSimulator 僅適用于在應用程式開發期間進行測試,因此傳回的 CurrentAppSimulator.AppId 只會包含 0。

一旦您的應用程式列在 Windows 市集上, CurrentApp.AppId 就會取得在應用程式上架期間產生的 GUID ,並用來在 Windows 市集目錄中列出您的應用程式。

注意

應用程式更新或應用程式描述的變更將不會產生 CurrentApp.AppId的變更。

public:
 static property Platform::Guid AppId { Platform::Guid get(); };
static winrt::guid AppId();
public static Guid AppId { get; }
var guid = CurrentAppSimulator.appId;
Public Shared ReadOnly Property AppId As Guid

屬性值

Guid

Platform::Guid

winrt::guid

識別 Windows 市集中應用程式的 GUID

備註

使用 WindowsStoreProxy.xml 檔案中的 AppId 元素做為傳回物件成員的資料來源。 如需詳細資訊,請參閱 搭配 CurrentAppSimulator 使用 WindowsStoreProxy.xml 檔案

適用於