Share via


StoreConfiguration.SetStoreWebAccountId(String) 方法

定義

設定目前登入市集使用者的市集使用者帳戶識別碼,讓其他應用程式可以查詢此識別碼。

public:
 static void SetStoreWebAccountId(Platform::String ^ webAccountId);
 static void SetStoreWebAccountId(winrt::hstring const& webAccountId);
public static void SetStoreWebAccountId(string webAccountId);
function setStoreWebAccountId(webAccountId)
Public Shared Sub SetStoreWebAccountId (webAccountId As String)

參數

webAccountId
String

Platform::String

winrt::hstring

市集使用者帳戶識別碼 (通常是從 WebAccount.Id 屬性取得,) 為目前登入市集的使用者設定。

適用於