ExchangeService.BeginSubscribeToPushNotificationsOnAllFolders method (AsyncCallback, Object, Uri, Int32, String, String, EventType[])

Begins an asynchronous request to subscribe to push notifications on all folders in the authenticated user's mailbox that includes a request for additional information to be returned in the push notification response.

The BeginSubscribeToPushNotificationsOnAllFolders(AsyncCallback, Object, Uri, Int32, String, 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 BeginSubscribeToPushNotificationsOnAllFolders(
	AsyncCallback callback,
	Object state,
	Uri url,
	int frequency,
	string watermark,
	string callerData,
	params EventType[] eventTypes


Type: System.AsyncCallback

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

Type: System.Object

An object that contains state information for this request.

Type: System.Uri

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

Type: System.Int32

The frequency, in minutes, at which the Exchange server should contact the web service endpoint. This value must be between 1 and 1440.

Type: System.String

An optional watermark representing a previously opened subscription.

Type: System.String

Optional information that the caller requests be returned in the push notification response.

Type: []

The event types to subscribe to.

Return value

Type: System.IAsyncResult
An object that references the asynchronous request.

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