StoreConfiguration.HasStoreWebAccountForUser(User) 方法

定义

确定指定用户是否具有 Microsoft Store 帐户。

public:
 static bool HasStoreWebAccountForUser(User ^ user);
 static bool HasStoreWebAccountForUser(User const& user);
public static bool HasStoreWebAccountForUser(User user);
function hasStoreWebAccountForUser(user)
Public Shared Function HasStoreWebAccountForUser (user As User) As Boolean

参数

user
User

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

返回

Boolean

bool

如果指定用户具有 Microsoft Store 帐户,则其值为 True;否则为 false。

Windows 要求

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

适用于