StoreConfiguration.IsStoreWebAccountIdForUser(User, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the specified user and user ID is also being used to sign in to the Microsoft Store on the device.
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
Parameters
- user
- User
An object that identifies the user for which to query.
- webAccountId
-
String
Platform::String
winrt::hstring
The user ID (typically obtained from the WebAccount.Id property) to check.
Returns
bool
True if the user account specified by webAccountId is the same account that is signed in to the Microsoft Store; otherwise false.
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|