StoredContact.GetPropertiesAsync Method

Definition

Gets the known properties for the contact.

public:
 virtual IAsyncOperation<IMap<Platform::String ^, Platform::Object ^> ^> ^ GetPropertiesAsync() = GetPropertiesAsync;
IAsyncOperation<IMap<winrt::hstring, IInspectable const&>> GetPropertiesAsync();
public IAsyncOperation<IDictionary<string,object>> GetPropertiesAsync();
function getPropertiesAsync()
Public Function GetPropertiesAsync () As IAsyncOperation(Of IDictionary(Of String, Object))

Returns

IAsyncOperation<IMap<String,Object>>

IAsyncOperation<IDictionary<String,Object>>

IAsyncOperation<IMap<String,IInspectable>>

When this method completes, it returns a map/dictionary of name/value pairs (string name, untyped values). If you use Asynchronous programming, the result type is a map or dictionary of these key-value pairs, keyed by string names. (You can use APIs of IMap for C++, APIs of IDictionary<String,Object> for .NET.)

Implements

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

Remarks

The key names must be one of the properties of the KnownContactProperties class. To get values for arbitrary app-defined properties, use GetExtendedPropertiesAsync instead. The contents of the collection is saved when SaveAsync is called.

Applies to

See also