User.GetPropertyAsync(String) User.GetPropertyAsync(String) User.GetPropertyAsync(String) User.GetPropertyAsync(String) User.GetPropertyAsync(String) Method

Definition

Gets a property for the user. Use the KnownUserProperties class to obtain property names.

public : IAsyncOperation<Platform::Object> GetPropertyAsync(Platform::String value)
IAsyncOperation<winrt::Windows::Foundation::IInspectable> GetPropertyAsync(winrt::hstring value) const;
public IAsyncOperation<object> GetPropertyAsync(String value)
Public Function GetPropertyAsync(value As String) As IAsyncOperation(Of object)
Windows.System.User.getPropertyAsync(value).done( /* Your success and error handlers */ );

Parameters

value
String String String

The property to get.

Returns

When this method completes, it returns the requested property. If the property is missing or unavailable, an empty string is returned.

Additional features and requirements

Capabilities
userAccountInformation

Remarks

See the GetPropertiesAsync method for details on supported properties.

See also