ExchangeService.BeginSubscribeToStreamingNotifications 方法

定义

开始订阅流式处理通知的异步请求。此方法是在 Exchange Web Services (EWS) 托管 API 1.2 中引入的。

public:
 IAsyncResult ^ BeginSubscribeToStreamingNotifications(AsyncCallback ^ callback, System::Object ^ state, System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::FolderId ^> ^ folderIds, ... cli::array <Microsoft::Exchange::WebServices::Data::EventType> ^ eventTypes);
public IAsyncResult BeginSubscribeToStreamingNotifications (AsyncCallback callback, object state, System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.FolderId> folderIds, params Microsoft.Exchange.WebServices.Data.EventType[] eventTypes);
Public Function BeginSubscribeToStreamingNotifications (callback As AsyncCallback, state As Object, folderIds As IEnumerable(Of FolderId), ParamArray eventTypes As EventType()) As IAsyncResult

参数

callback
AsyncCallback

AsyncCallback 委托。

state
Object

一个 对象,该对象包含指定请求的状态信息。

folderIds
IEnumerable<FolderId>

要订阅的文件夹的文件夹 ID。

eventTypes
EventType[]

要订阅的事件类型。

返回

引用异步请求的同步结果对象。

注解

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

适用于