SetContactPicture method

void SetContactPicture(
  1. Uint8List content
)
The bytes making up the picture.

Implementation

/// </summary>
/// <param name="content">The bytes making up the picture.</param>
void SetContactPicture(Uint8List content) {
  EwsUtilities.ValidateMethodVersion(
    Service,
    ExchangeVersion.Exchange2010,
    "SetContactPicture",
  );

  InternalRemoveContactPicture();
  FileAttachment fileAttachment = Attachments.AddFileAttachmentWithContent(
    _ContactPictureName,
    content,
  );
  fileAttachment.IsContactPhoto = true;
}