Export (0) Print
Expand All

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)

'Declaration
Public Sub SetRetentionPolicyForItemsInConversation ( _
	contextFolderId As FolderId, _
	retentionPolicyType As RetentionType, _
	retentionPolicyTagId As Nullable(Of Guid) _
)
'Usage
Dim instance As Conversation
Dim contextFolderId As FolderId
Dim retentionPolicyType As RetentionType
Dim retentionPolicyTagId As Nullable(Of Guid)

instance.SetRetentionPolicyForItemsInConversation(contextFolderId, _
	retentionPolicyType, retentionPolicyTagId)

Parameters

contextFolderId
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.

retentionPolicyType
Type: Microsoft.Exchange.WebServices.Data.RetentionType

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

retentionPolicyTagId
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).

Show:
© 2014 Microsoft