Conversation.SetRetentionPolicyForItemsInConversation method

Sets the retention policy of items in the specified conversation.

The SetRetentionPolicyForItemsInConversation(FolderId, RetentionType, Nullable<Guid>) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public void SetRetentionPolicyForItemsInConversation(
	FolderId contextFolderId,
	RetentionType retentionPolicyType,
	Nullable<Guid> retentionPolicyTagId


Type: Microsoft.Exchange.WebServices.Data.FolderId

The identifier of the folder whose items will have their retention policy set. If the value of the contextFolderId parameter is a null reference (Nothing in Visual Basic), the retention policy of items across the entire mailbox are set.

Type: Microsoft.Exchange.WebServices.Data.RetentionType

A value indicating whether the tagged object is to be archived or deleted.

Type: System.Nullable<Guid>

The retention policy tag identifier. A a null reference (Nothing in Visual Basic) value will clear the policy.

Calling this method results in a call to Exchange Web Services (EWS).