CNContactStore.RequestAccessAsync(CNEntityType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.