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

Initiates a request to receive push notifications on all folders in a user's mailbox.

The SubscribeToPushNotificationsOnAllFolders(Uri, Int32, String, []) method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2010.

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

public PushSubscription SubscribeToPushNotificationsOnAllFolders(
	Uri url,
	int frequency,
	string watermark,
	params EventType[] eventTypes
)

Parameters

url
Type: System.Uri

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

frequency
Type: System.Int32

The interval, in minutes, at which the Exchange Server 2010 is to contact the web service endpoint. The value of this parameter must be in the range from 1 to 1440.

watermark
Type: System.String

An optional watermark that represents a previously opened subscription.

eventTypes
Type: []

The types of events to subscribe to.

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

Show: