Share via


StoredContact.GetExtendedPropertiesAsync Method

Definition

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

public:
 virtual IAsyncOperation<IMap<Platform::String ^, Platform::Object ^> ^> ^ GetExtendedPropertiesAsync() = GetExtendedPropertiesAsync;
IAsyncOperation<IMap<winrt::hstring, IInspectable const&>> GetExtendedPropertiesAsync();
public IAsyncOperation<IDictionary<string,object>> GetExtendedPropertiesAsync();
function getExtendedPropertiesAsync()
Public Function GetExtendedPropertiesAsync () 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.)

Windows requirements

App capabilities
ID_CAP_CONTACTS [Windows Phone]

Remarks

In the current release, the values stored in the collection returned by this method must be strings. The key names are app-defined and are not used by the operating system at all. To get the values for common properties, such as a contact address or telephone numbers that are used by the operating system, use GetPropertiesAsync instead. The contents of the extended properties collection is saved when SaveAsync is called.

Applies to

See also