SetRetentionPolicyForItemsInConversations method

Future<ServiceResponseCollection<ServiceResponse>> SetRetentionPolicyForItemsInConversations(
  1. Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  2. FolderId? contextFolderId,
  3. RetentionType retentionPolicyType,
  4. Uuid? retentionPolicyTagId,
)
Sets the retention policy for items in conversation. Calling this method would result in call to EWS. The pairs of Id of conversation whose items should have their retention policy set and the date and time conversation was last synced (Items received after that date will not have their retention policy set). The Id of the folder that contains the conversation. Retention policy type. Retention policy tag id. Null will clear the policy.

Implementation

Future<ServiceResponseCollection<ServiceResponse>>
SetRetentionPolicyForItemsInConversations(
  Iterable<MapEntry<ConversationId, DateTime?>> idLastSyncTimePairs,
  FolderId? contextFolderId,
  RetentionType retentionPolicyType,
  Uuid? retentionPolicyTagId,
) {
  return ApplyConversationOneTimeAction(
    ConversationActionType.SetRetentionPolicy,
    idLastSyncTimePairs,
    contextFolderId,
    null,
    null,
    null,
    retentionPolicyType,
    retentionPolicyTagId,
    null,
    null,
    ServiceErrorHandling.ReturnErrors,
  );
}