ExchangeService.SetRetentionPolicyForItemsInConversations 方法

定义

设置对话中项目的保留策略。 方法SetRetentionPolicyForItemsInConversations(IEnumerable<KeyValuePair<ConversationId,Nullable<DateTime>>>, FolderId, RetentionType, Nullable<Guid>)适用于从 Exchange Server 2013 开始面向 Exchange Online 和 Exchange 版本的客户端。

public:
 Microsoft::Exchange::WebServices::Data::ServiceResponseCollection<Microsoft::Exchange::WebServices::Data::ServiceResponse ^> ^ SetRetentionPolicyForItemsInConversations(System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<Microsoft::Exchange::WebServices::Data::ConversationId ^, Nullable<DateTime>>> ^ idLastSyncTimePairs, Microsoft::Exchange::WebServices::Data::FolderId ^ contextFolderId, Microsoft::Exchange::WebServices::Data::RetentionType retentionPolicyType, Nullable<Guid> retentionPolicyTagId);
public Microsoft.Exchange.WebServices.Data.ServiceResponseCollection<Microsoft.Exchange.WebServices.Data.ServiceResponse> SetRetentionPolicyForItemsInConversations (System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Microsoft.Exchange.WebServices.Data.ConversationId,Nullable<DateTime>>> idLastSyncTimePairs, Microsoft.Exchange.WebServices.Data.FolderId contextFolderId, Microsoft.Exchange.WebServices.Data.RetentionType retentionPolicyType, Nullable<Guid> retentionPolicyTagId);
Public Function SetRetentionPolicyForItemsInConversations (idLastSyncTimePairs As IEnumerable(Of KeyValuePair(Of ConversationId, Nullable(Of DateTime))), contextFolderId As FolderId, retentionPolicyType As RetentionType, retentionPolicyTagId As Nullable(Of Guid)) As ServiceResponseCollection(Of ServiceResponse)

参数

idLastSyncTimePairs
IEnumerable<KeyValuePair<ConversationId,Nullable<DateTime>>>

用于确定需要更新哪些会话的会话 ID 和关联的时间戳的集合。

contextFolderId
FolderId

包含对话的文件夹的 ID。

retentionPolicyType
RetentionType

已标记的项已存档或删除。

retentionPolicyTagId
Nullable<Guid>

保留策略标记 ID。 将引用设置为 null 引用 (Visual Basic 中没有任何) 会清除策略。

返回

应用的保留策略更改的结果。

注解

调用此方法会导致调用 Exchange Web Services (EWS) 托管 API。

适用于