StoreConfiguration.GetStoreWebAccountIdForUser(User) 方法

定义

获取登录到应用商店的指定用户的应用商店用户帐户 ID。

public:
 static Platform::String ^ GetStoreWebAccountIdForUser(User ^ user);
 static winrt::hstring GetStoreWebAccountIdForUser(User const& user);
public static string GetStoreWebAccountIdForUser(User user);
function getStoreWebAccountIdForUser(user)
Public Shared Function GetStoreWebAccountIdForUser (user As User) As String

参数

user
User

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

返回

String

Platform::String

winrt::hstring

指定用户的应用商店用户帐户 ID。

Windows 要求

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

适用于