Export (0) Print
Expand All

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

EWS Managed API

Begins an asynchronous request to subscribe to push notifications.

The BeginSubscribeToPushNotifications(AsyncCallback, Object, IEnumerable<FolderId>, Uri, Int32, String, []) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public IAsyncResult BeginSubscribeToPushNotifications(
	AsyncCallback callback,
	Object state,
	IEnumerable<FolderId> folderIds,
	Uri url,
	int frequency,
	string watermark,
	params EventType[] eventTypes
)

Parameters

callback
Type: System.AsyncCallback

A reference to the method to call when the corresponding asynchronous operation completes.

state
Type: System.Object

An object that contains state information for the specified request.

folderIds
Type: System.Collections.Generic.IEnumerable<FolderId>

The folder identifiers of the folder to be subscribed to.

url
Type: System.Uri

The URL of the web service endpoint to which the Exchange server should push events.

frequency
Type: System.Int32

The interval, in minutes, at which the Exchange server is to contact the web service endpoint. This value must be in the range from 1 through 1440.

watermark
Type: System.String

An optional watermark representing a previously opened subscription.

eventTypes
Type: []

The event types to be subscribed to.

Return value

Type: System.IAsyncResult
A synchronization result object that references the asynchronous request.

Calling this method results in a call to Exchange Web Services (EWS).

Show:
© 2014 Microsoft