編輯

共用方式為


EKEventStore.RequestAccessAsync(EKEntityType) Method

Definition

Shows, if necessary, the standard permissions dialog for the specified entityType.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAccessAsync (EventKit.EKEntityType entityType);
abstract member RequestAccessAsync : EventKit.EKEntityType -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : EventKit.EKEntityType -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

entityType
EKEntityType

The for which access is being requested.

Returns

A task that represents the asynchronous RequestAccess operation. The value of the TResult parameter is of type System.Action<System.Boolean,Foundation.NSError>.

Attributes

Remarks

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

Applies to