User.GetPropertyAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.