IGraphClientAsync.FetchRuleAsync

IGraphClientAsync.FetchRuleAsync method

Asynchronously fetches an inbox rule by its ID.

public Task<InboxRule> FetchRuleAsync(string itemId, CancellationToken cancellationToken = default)
ParameterTypeDescription
itemIdStringThe ID of the rule to fetch.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

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

See Also