Delen via


User.GetPropertyAsync(String) Method

Definition

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

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)

Parameters

value
String

Platform::String

winrt::hstring

The property to get.

Returns

IAsyncOperation<Object>

IAsyncOperation<Platform::Object>

IAsyncOperation<IInspectable>

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

Attributes

Windows requirements

App capabilities
userAccountInformation

Remarks

See the GetPropertiesAsync method for details on supported properties.

Applies to

See also