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

Initiates a request for a client to receive push notifications.

The SubscribeToPushNotifications(IEnumerable<FolderId>, 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 SubscribeToPushNotifications(
	IEnumerable<FolderId> folderIds,
	Uri url,
	int frequency,
	string watermark,
	params EventType[] eventTypes


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

The IDs of the folders to subscribe to.

Type: System.Uri

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

Type: System.Int32

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

Type: System.String

An optional watermark that represents a previously opened subscription.

Type: []

The types of events to subscribe to.

Return value

Type: Microsoft.Exchange.WebServices.Data.PushSubscription
A subscription response object.

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