Contacts.GetAllAsync(CancellationToken) 方法

定义

获取设备上所有联系人的集合。

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Maui.ApplicationModel.Communication.Contact>> GetAllAsync (System.Threading.CancellationToken cancellationToken = default);
static member GetAllAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Maui.ApplicationModel.Communication.Contact>>
Public Shared Function GetAllAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of Contact))

参数

cancellationToken
CancellationToken

可用于取消操作的令牌。

返回

设备上的联系人集合。

适用于