StoreConfiguration.IsStoreWebAccountId(String) 方法

定义

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

public:
 static bool IsStoreWebAccountId(Platform::String ^ webAccountId);
 static bool IsStoreWebAccountId(winrt::hstring const& webAccountId);
public static bool IsStoreWebAccountId(string webAccountId);
function isStoreWebAccountId(webAccountId)
Public Shared Function IsStoreWebAccountId (webAccountId As String) As Boolean

参数

webAccountId
String

Platform::String

winrt::hstring

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

返回

Boolean

bool

如此 如果 由 webAccountId 指定的用户帐户是登录到 Microsoft Store 的同一帐户;否则为 false。

适用于