Udostępnij za pośrednictwem


AccountsSettingsPane.ShowAddAccountForUserAsync(User) Method

Definition

Displays the add accounts screen for the specified user.

public:
 static IAsyncAction ^ ShowAddAccountForUserAsync(User ^ user);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction ShowAddAccountForUserAsync(User const& user);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction ShowAddAccountForUserAsync(User user);
function showAddAccountForUserAsync(user)
Public Shared Function ShowAddAccountForUserAsync (user As User) As IAsyncAction

Parameters

user
User

The user who will add an account.

Returns

Represents the asynchronous action. You usually don't access this IAsyncAction return value directly. That's because you almost always use the language-specific awaitable syntax. In this case, the apparent return value of the method is void.

The asynchronous action completes when the user has dismissed the add accounts screen.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to