UserPicker.PickSingleUserAsync 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.
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.