Bearbeiten

Freigeben über


CNContactStore.RequestAccessAsync(CNEntityType) Method

Definition

Requests access to the user's contacts.

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAccessAsync (Contacts.CNEntityType entityType);
abstract member RequestAccessAsync : Contacts.CNEntityType -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : Contacts.CNEntityType -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

entityType
CNEntityType

Returns

A task that represents the asynchronous RequestAccess operation. The value of the TResult parameter is a Contacts.CNContactStoreRequestAccessHandler.

Remarks

The RequestAccessAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to