IGmailClientAsync.CreateAccessRuleAsync

IGmailClientAsync.CreateAccessRuleAsync method

Asynchronously creates an access control rule for a calendar.

public Task<AccessControlRule> CreateAccessRuleAsync(string calendarId, AccessControlRule role, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
calendarIdStringThe ID of the calendar.
roleAccessControlRuleThe access control rule to create.
cancellationTokenCancellationTokenA cancellation token.

Return Value

A task that represents the asynchronous operation. The task result contains the created AccessControlRule.

See Also