UserPicker Classe

Definizione

Contiene metodi e proprietà per consentire a un utente di selezionare un account utente in scenari multiutente.

public ref class UserPicker sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UserPicker final
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class UserPicker final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UserPicker
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class UserPicker
function UserPicker()
Public NotInheritable Class UserPicker
Ereditarietà
Object Platform::Object IInspectable UserPicker
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 Anniversary Edition (è stato introdotto in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v3.0)

Costruttori

UserPicker()

Crea un nuovo UserPicker.

Proprietà

AllowGuestAccounts

Ottiene o imposta un valore che indica se la selezione degli account guest è consentita.

SuggestedSelectedUser

Ottiene o imposta un utente suggerito per la selezione da indicare nell'interfaccia utente.

Metodi

IsSupported()

Determina se UserPicker è supportato.

PickSingleUserAsync()

Visualizza una finestra di dialogo che consente all'utente di selezionare un account utente. L'account selezionato è connesso, associato a IGameController che l'ha selezionata, e diventa recuperabile usando la classe User . Questo metodo è supportato solo per dispositivi e app multiutente e genererà un'eccezione se viene chiamato da un singolo dispositivo utente o app.

Si applica a