IGmailClientAsync.FetchAccessRuleAsync

IGmailClientAsync.FetchAccessRuleAsync method

Asynchronously fetches an access control rule by its ID from a calendar.

public Task<AccessControlRule> FetchAccessRuleAsync(string calendarId, string roleId, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
calendarIdStringThe ID of the calendar.
roleIdStringThe ID of the access control rule.
cancellationTokenCancellationTokenA cancellation token.

Return Value

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

See Also