StoreConfiguration.SetStoreWebAccountIdForUser(User, String) 方法

定义

设置指定用户的应用商店用户帐户 ID,以便其他应用可以针对此 ID 进行查询。

public:
 static void SetStoreWebAccountIdForUser(User ^ user, Platform::String ^ webAccountId);
 static void SetStoreWebAccountIdForUser(User const& user, winrt::hstring const& webAccountId);
public static void SetStoreWebAccountIdForUser(User user, string webAccountId);
function setStoreWebAccountIdForUser(user, webAccountId)
Public Shared Sub SetStoreWebAccountIdForUser (user As User, webAccountId As String)

参数

user
User

一个 Windows.System.User 对象,用于标识要设置其应用商店用户帐户 ID 的用户。

webAccountId
String

Platform::String

winrt::hstring

应用商店用户帐户 ID (通常从 WebAccount.Id 属性获取,) 为指定用户设置。

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

适用于