IGraphClientAsync.ListContactsAsync

IGraphClientAsync.ListContactsAsync method

Asynchronously lists MapiContact from the parent folder.

public Task<MapiContactCollection> ListContactsAsync(string id, 
    ODataQueryBuilder queryBuilder = null, CancellationToken cancellationToken = default)
ParameterTypeDescription
idStringParent folder id.
queryBuilderODataQueryBuilderOptional OData query builder for filtering contacts.
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 list of MapiContact of the folder.

See Also