StoreConfiguration.IsStoreWebAccountIdForUser(User, String) 方法

定义

确定是否也使用指定的用户和用户 ID 登录到设备上的 Microsoft Store。

public:
 static bool IsStoreWebAccountIdForUser(User ^ user, Platform::String ^ webAccountId);
 static bool IsStoreWebAccountIdForUser(User const& user, winrt::hstring const& webAccountId);
public static bool IsStoreWebAccountIdForUser(User user, string webAccountId);
function isStoreWebAccountIdForUser(user, webAccountId)
Public Shared Function IsStoreWebAccountIdForUser (user As User, webAccountId As String) As Boolean

参数

user
User

一个 对象,用于标识要查询的用户。

webAccountId
String

Platform::String

winrt::hstring

用户 ID 通常 (从 WebAccount.Id 属性获取,) 检查。

返回

Boolean

bool

如果 webAccountId 指定的用户帐户与登录到 Microsoft Store 的帐户相同,则其值为 True;否则为 false。

Windows 要求

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

适用于