Share via


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 引進)

適用於