ExchangeService.SubscribeToPullNotifications 方法

定义

订阅拉取通知。

public:
 Microsoft::Exchange::WebServices::Data::PullSubscription ^ SubscribeToPullNotifications(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::FolderId ^> ^ folderIds, int timeout, System::String ^ watermark, ... cli::array <Microsoft::Exchange::WebServices::Data::EventType> ^ eventTypes);
public Microsoft.Exchange.WebServices.Data.PullSubscription SubscribeToPullNotifications (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.FolderId> folderIds, int timeout, string watermark, params Microsoft.Exchange.WebServices.Data.EventType[] eventTypes);
Public Function SubscribeToPullNotifications (folderIds As IEnumerable(Of FolderId), timeout As Integer, watermark As String, ParamArray eventTypes As EventType()) As PullSubscription

参数

folderIds
IEnumerable<FolderId>

要订阅的文件夹的 ID。

timeout
Int32

订阅过期的已用时间(以分钟为单位)。 此参数的值必须介于 1 到 1440 的范围内。

watermark
String

表示以前打开的订阅的可选水印。

eventTypes
EventType[]

要订阅的事件类型。

返回

指定文件夹的新订阅。

注解

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

适用于