共用方式為


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識別碼。

傳回

新建立的 ContactList

屬性

Windows 需求

應用程式功能
contactsSystem

另請參閱

適用於