Share via


UserDataAccountSystemAccessManager.SuppressLocalAccountWithAccountAsync Method

Definition

Asynchronously, and temporarily, replaces the default local account by using the specified account.

public:
 static IAsyncAction ^ SuppressLocalAccountWithAccountAsync(Platform::String ^ userDataAccountId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SuppressLocalAccountWithAccountAsync(winrt::hstring const& userDataAccountId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SuppressLocalAccountWithAccountAsync(string userDataAccountId);
function suppressLocalAccountWithAccountAsync(userDataAccountId)
Public Shared Function SuppressLocalAccountWithAccountAsync (userDataAccountId As String) As IAsyncAction

Parameters

userDataAccountId
String

Platform::String

winrt::hstring

The user ID of the account used to temporarily replace the default local account.

Returns

Returns an async action indicating that the operation has completed.

Attributes

Windows requirements

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

Remarks

The default local account is suppressed while the new account, referenced by userDataAccountId, is present on the device. When that new account is deleted, the local account pops back into the system.

Applies to