Share via


StoreConfiguration.SetEnterpriseStoreWebAccountIdForUser(User, String) 方法

定義

設定指定之 Azure AD 使用者的市集使用者帳戶識別碼,讓其他應用程式可以查詢此識別碼。

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物件,識別您想要設定其市集使用者帳戶識別碼的 Azure AD 使用者。

webAccountId
String

Platform::String

winrt::hstring

市集使用者帳戶識別碼 (通常會從 WebAccount.Id 屬性取得,) 為指定的 Azure AD 使用者設定。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於