SetExtendedProperty method

void SetExtendedProperty(
  1. ExtendedPropertyDefinition extendedPropertyDefinition,
  2. Object value
)
Creates a copy of this item in the specified folder. Calling this method results in a call to EWS. The Id of the folder in which to create a copy of this item. Creates a copy of this item in the specified folder. Calling this method results in a call to EWS. The name of the folder in which to create a copy of this item. Moves this item to a the specified folder. Calling this method results in a call to EWS. The Id of the folder to which to move this item. / EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId"); Moves this item to a the specified folder. Calling this method results in a call to EWS. The name of the folder to which to move this item. Sets the extended property. The extended property definition. The value.

Implementation

// Item Copy(FolderId destinationFolderId)
//        {
//            this.ThrowIfThisIsNew();
//            this.ThrowIfThisIsAttachment();
//
//            EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");
//
//            return this.Service.CopyItem(this.Id, destinationFolderId);
//        }

/// <summary>
/// Creates a copy of this item in the specified folder. Calling this method results in a call to EWS.
/// <para>
/// Copy returns null if the copy operation is across two mailboxes or between a mailbox and a
/// public folder.
/// </para>
/// </summary>
/// <param name="destinationFolderName">The name of the folder in which to create a copy of this item.</param>
/// <returns>The copy of this item.</returns>
// Item Copy(WellKnownFolderName destinationFolderName)
//        {
//            return this.Copy(new FolderId(destinationFolderName));
//        }

/// <summary>
/// Moves this item to a the specified folder. Calling this method results in a call to EWS.
/// <para>
/// Move returns null if the move operation is across two mailboxes or between a mailbox and a
/// public folder.
/// </para>
/// </summary>
/// <param name="destinationFolderId">The Id of the folder to which to move this item.</param>
/// <returns>The moved copy of this item.</returns>
// Item Move(FolderId destinationFolderId)
//        {
//            this.ThrowIfThisIsNew();
//            this.ThrowIfThisIsAttachment();
//
////            EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");
//
//            return this.Service.MoveItem(this.Id, destinationFolderId);
//        }

/// <summary>
/// Moves this item to a the specified folder. Calling this method results in a call to EWS.
/// <para>
/// Move returns null if the move operation is across two mailboxes or between a mailbox and a
/// public folder.
/// </para>
/// </summary>
/// <param name="destinationFolderName">The name of the folder to which to move this item.</param>
/// <returns>The moved copy of this item.</returns>
// Item Move(WellKnownFolderName destinationFolderName)
//        {
//            return this.Move(new FolderId(destinationFolderName));
//        }

/// <summary>
/// Sets the extended property.
/// </summary>
/// <param name="extendedPropertyDefinition">The extended property definition.</param>
/// <param name="value">The value.</param>
void SetExtendedProperty(
    ExtendedPropertyDefinition extendedPropertyDefinition, Object value) {
  this
      .ExtendedProperties
      .SetExtendedProperty(extendedPropertyDefinition, value);
}