User.GetPropertyAsync(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour