StoreConfiguration.SetEnterpriseStoreWebAccountIdForUser(User, String) 方法

定义

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

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

参数

user
User

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

webAccountId
String

Platform::String

winrt::hstring

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

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于