Share via


StoreConfiguration.SetStoreWebAccountIdForUser(User, String) Method

Definition

Sets the Store user account ID for the specified user so that other apps can query against this ID.

public:
 static void SetStoreWebAccountIdForUser(User ^ user, Platform::String ^ webAccountId);
 static void SetStoreWebAccountIdForUser(User const& user, winrt::hstring const& webAccountId);
public static void SetStoreWebAccountIdForUser(User user, string webAccountId);
function setStoreWebAccountIdForUser(user, webAccountId)
Public Shared Sub SetStoreWebAccountIdForUser (user As User, webAccountId As String)

Parameters

user
User

A Windows.System.User object that identifies the user whose Store user account ID you want to set.

webAccountId
String

Platform::String

winrt::hstring

The Store user account ID (typically obtained from the WebAccount.Id property) to set for the specified user.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Applies to