ExchangeService.SubscribeToStreamingNotifications 方法

定义

订阅流式处理通知。 调用此方法会导致调用 Exchange Web Services (EWS) 。

public:
 Microsoft::Exchange::WebServices::Data::StreamingSubscription ^ SubscribeToStreamingNotifications(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::FolderId ^> ^ folderIds, ... cli::array <Microsoft::Exchange::WebServices::Data::EventType> ^ eventTypes);
public Microsoft.Exchange.WebServices.Data.StreamingSubscription SubscribeToStreamingNotifications (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.FolderId> folderIds, params Microsoft.Exchange.WebServices.Data.EventType[] eventTypes);
Public Function SubscribeToStreamingNotifications (folderIds As IEnumerable(Of FolderId), ParamArray eventTypes As EventType()) As StreamingSubscription

参数

folderIds
IEnumerable<FolderId>

要订阅的文件夹的文件夹标识符。

eventTypes
EventType[]

要订阅的事件类型。

返回

指定事件的订阅。

适用于