Share via


ContactInformation.GetPropertiesAsync Method

Definition

Gets the properties for a contact as an map of name/value pairs.

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<Platform::String,Platform::Object>>

IAsyncOperation<IMap<winrt::hstring,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

When working with the collection that this method returns, use the KnownContactProperties static properties as the key value. This assures that you're asking for known, existing properties.

Applies to

See also