IGraphClientAsync.CreateContactAsync

IGraphClientAsync.CreateContactAsync method

Asynchronously creates a contact in the specified folder.

public Task<MapiContact> CreateContactAsync(string folderId, MapiContact contact, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderIdStringThe ID of the folder where the contact will be created.
contactMapiContactThe MapiContact to create.
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 created MapiContact.

See Also