IGmailClientAsync.CreateContactPhotoAsync

IGmailClientAsync.CreateContactPhotoAsync method

Asynchronously creates a contact photo.

public Task<ContactPhoto> CreateContactPhotoAsync(Contact contact, byte[] imageData, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
contactContactThe contact to associate the photo with.
imageDataByte[]The image data for the photo.
cancellationTokenCancellationTokenA cancellation token.

Return Value

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

See Also