User.GetPropertyAsync(String) Méthode

Définition

Obtient une propriété pour l’utilisateur. Utilisez la classe KnownUserProperties pour obtenir des noms de propriétés.

public:
 virtual IAsyncOperation<Platform::Object ^> ^ GetPropertyAsync(Platform::String ^ value) = GetPropertyAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IInspectable> GetPropertyAsync(winrt::hstring const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<object> GetPropertyAsync(string value);
function getPropertyAsync(value)
Public Function GetPropertyAsync (value As String) As IAsyncOperation(Of Object)

Paramètres

value
String

Platform::String

winrt::hstring

Propriété à obtenir.

Retours

IAsyncOperation<Object>

IAsyncOperation<Platform::Object>

IAsyncOperation<IInspectable>

Une fois cette méthode terminée, elle retourne la propriété demandée. Si la propriété est manquante ou indisponible, une chaîne vide est retournée.

Attributs

Configuration requise pour Windows

Fonctionnalités de l’application
userAccountInformation

Remarques

Pour plus d’informations sur les propriétés prises en charge, consultez la méthode GetPropertiesAsync .

S’applique à

Voir aussi