Share via


UserPicker.PickSingleUserAsync Method

Definition

Displays a dialog for the user to pick a user account. The selected account is signed in, paired with the IGameController that selected it, and becomes obtainable using the User class. This method is only supported for multi-user devices and apps, and will throw an exception if called from a single user device or app.

public:
 virtual IAsyncOperation<User ^> ^ PickSingleUserAsync() = PickSingleUserAsync;
IAsyncOperation<User> PickSingleUserAsync();
public IAsyncOperation<User> PickSingleUserAsync();
function pickSingleUserAsync()
Public Function PickSingleUserAsync () As IAsyncOperation(Of User)

Returns

When this method completes, it returns the selected user. If no user was selected, it returns null instead.

Applies to