ContactStore.CreateContactListAsync 方法

定义

重载

CreateContactListAsync(String)

异步创建具有指定显示名称的 ContactList

CreateContactListAsync(String, String)

异步创建具有指定显示名称和用户帐户的 ContactList

CreateContactListAsync(String)

异步创建具有指定显示名称的 ContactList

public:
 virtual IAsyncOperation<ContactList ^> ^ CreateContactListAsync(Platform::String ^ displayName) = CreateContactListAsync;
/// [Windows.Foundation.Metadata.Overload("CreateContactListAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ContactList> CreateContactListAsync(winrt::hstring const& displayName);
[Windows.Foundation.Metadata.Overload("CreateContactListAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ContactList> CreateContactListAsync(string displayName);
function createContactListAsync(displayName)
Public Function CreateContactListAsync (displayName As String) As IAsyncOperation(Of ContactList)

参数

displayName
String

Platform::String

winrt::hstring

ContactList 的名称,适合显示在用户界面中。

返回

新创建的 ContactList

属性

Windows 要求

应用功能
contactsSystem

另请参阅

适用于

CreateContactListAsync(String, String)

异步创建具有指定显示名称和用户帐户的 ContactList

public:
 virtual IAsyncOperation<ContactList ^> ^ CreateContactListAsync(Platform::String ^ displayName, Platform::String ^ userDataAccountId) = CreateContactListAsync;
/// [Windows.Foundation.Metadata.Overload("CreateContactListInAccountAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ContactList> CreateContactListAsync(winrt::hstring const& displayName, winrt::hstring const& userDataAccountId);
[Windows.Foundation.Metadata.Overload("CreateContactListInAccountAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ContactList> CreateContactListAsync(string displayName, string userDataAccountId);
function createContactListAsync(displayName, userDataAccountId)
Public Function CreateContactListAsync (displayName As String, userDataAccountId As String) As IAsyncOperation(Of ContactList)

参数

displayName
String

Platform::String

winrt::hstring

ContactList 的名称,适合显示在用户界面中。

userDataAccountId
String

Platform::String

winrt::hstring

创建 ContactList 时要使用的 UserDataAccount 的 ID。

返回

新创建的 ContactList

属性

Windows 要求

应用功能
contactsSystem

另请参阅

适用于