ExchangeService.SubscribeToPushNotificationsOnAllFolders method (Uri, Int32, String, String, EventType[])

Initiates a request to receive push notifications on all folders in a user's mailbox that includes a request for additional information to be returned in the push notification response.

The SubscribeToPushNotificationsOnAllFolders(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 PushSubscription SubscribeToPushNotificationsOnAllFolders(
	Uri url,
	int frequency,
	string watermark,
	string callerData,
	params EventType[] eventTypes


Type: System.Uri

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

Type: System.Int32

The frequency, in minutes, at which the Exchange server should contact the Web Service endpoint. The frequency 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.

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