ExchangeService.BeginSubscribeToPushNotifications 方法

定义

重载

BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, EventType[])

开始订阅推送通知的异步请求。 方法BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, EventType[])适用于从 Exchange Server 2013 开始面向 Exchange Online 和 Exchange 版本的客户端。

BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, String, EventType[])

开始订阅推送通知的异步请求,该请求包括请求,请求在推送通知响应中返回其他信息。 方法BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, String, EventType[])适用于从 Exchange Server 2013 开始面向 Exchange Online 和 Exchange 版本的客户端。

BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, EventType[])

开始订阅推送通知的异步请求。 方法BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, EventType[])适用于从 Exchange Server 2013 开始面向 Exchange Online 和 Exchange 版本的客户端。

public:
 IAsyncResult ^ BeginSubscribeToPushNotifications(AsyncCallback ^ callback, System::Object ^ state, System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::FolderId ^> ^ folderIds, Uri ^ url, int frequency, System::String ^ watermark, ... cli::array <Microsoft::Exchange::WebServices::Data::EventType> ^ eventTypes);
public IAsyncResult BeginSubscribeToPushNotifications (AsyncCallback callback, object state, System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.FolderId> folderIds, Uri url, int frequency, string watermark, params Microsoft.Exchange.WebServices.Data.EventType[] eventTypes);
Public Function BeginSubscribeToPushNotifications (callback As AsyncCallback, state As Object, folderIds As IEnumerable(Of FolderId), url As Uri, frequency As Integer, watermark As String, ParamArray eventTypes As EventType()) As IAsyncResult

参数

callback
AsyncCallback

对在相应异步操作完成时调用的方法的引用。

state
Object

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

folderIds
IEnumerable<FolderId>

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

url
Uri

Exchange 服务器应向其推送事件的 Web 服务终结点的 URL。

frequency
Int32

Exchange 服务器联系 Web 服务终结点的间隔(以分钟为单位)。 此值必须介于 1 到 1440 的范围内。

watermark
String

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

eventTypes
EventType[]

要订阅的事件类型。

返回

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

注解

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

适用于

BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, String, EventType[])

开始订阅推送通知的异步请求,该请求包括请求,请求在推送通知响应中返回其他信息。 方法BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, String, EventType[])适用于从 Exchange Server 2013 开始面向 Exchange Online 和 Exchange 版本的客户端。

public:
 IAsyncResult ^ BeginSubscribeToPushNotifications(AsyncCallback ^ callback, System::Object ^ state, System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::FolderId ^> ^ folderIds, Uri ^ url, int frequency, System::String ^ watermark, System::String ^ callerData, ... cli::array <Microsoft::Exchange::WebServices::Data::EventType> ^ eventTypes);
public IAsyncResult BeginSubscribeToPushNotifications (AsyncCallback callback, object state, System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.FolderId> folderIds, Uri url, int frequency, string watermark, string callerData, params Microsoft.Exchange.WebServices.Data.EventType[] eventTypes);
Public Function BeginSubscribeToPushNotifications (callback As AsyncCallback, state As Object, folderIds As IEnumerable(Of FolderId), url As Uri, frequency As Integer, watermark As String, callerData As String, ParamArray eventTypes As EventType()) As IAsyncResult

参数

callback
AsyncCallback

对在相应异步操作完成时调用的方法的引用。

state
Object

一个 对象,其中包含此请求的状态信息。

folderIds
IEnumerable<FolderId>

要订阅的文件夹的 ID。

url
Uri

Exchange 服务器应将事件推送到的 Web 服务终结点的 URL。

frequency
Int32

Exchange 服务器应联系 Web 服务终结点的频率(以分钟为单位)。 此值必须介于 1 和 1440 之间。

watermark
String

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

callerData
String

调用方请求在推送通知响应中返回的可选信息。

eventTypes
EventType[]

要订阅的事件类型。

返回

引用异步请求的对象。

注解

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

适用于