Export (0) Print
Expand All

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
)

Parameters

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

The IDs of the folders to subscribe to.

url
Type: System.Uri

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

frequency
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.

watermark
Type: System.String

An optional watermark that represents a previously opened subscription.

eventTypes
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).

Show:
© 2015 Microsoft