StoredContact.GetPropertiesAsync 方法

定义

获取联系人的已知属性。

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))

返回

IAsyncOperation<IMap<String,Object>>

IAsyncOperation<IDictionary<String,Object>>

IAsyncOperation<IMap<Platform::String,Platform::Object>>

IAsyncOperation<IMap<winrt::hstring,IInspectable>>

此方法完成后,它将返回名称/值对的映射/字典 (字符串名称、非类型化值) 。 如果使用 异步编程,则结果类型是这些键值对的映射或字典,由字符串名称键控制。 (可以使用适用于 C++ 的 IMap API、 IDictionary<String 的 API、Object> for .NET.)

实现

Windows 要求

应用功能
ID_CAP_CONTACTS [Windows Phone]

注解

键名称必须是 KnownContactProperties 类的属性之一。 若要获取任意应用定义属性的值,请改用 GetExtendedPropertiesAsync 。 调用 SaveAsync 时,将保存集合的内容。

适用于

另请参阅