Export (0) Print
Expand All
Expand Minimize

ExchangeService.SubscribeToPullNotifications method

EWS Managed API

Subscribes to pull notifications.

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

public PullSubscription SubscribeToPullNotifications(
	IEnumerable<FolderId> folderIds,
	int timeout,
	string watermark,
	params EventType[] eventTypes
)

Parameters

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

The IDs of the folder to be subscribed to.

timeout
Type: System.Int32

The amount of elapsed time, in minutes, after which the subscription expires. The value of this parameter must be in the range from 1 through 1440.

watermark
Type: System.String

An optional watermark that represents a previously opened subscription.

eventTypes
Type: []

The event types to be subscribed to.

Return value

Type: Microsoft.Exchange.WebServices.Data.PullSubscription
The new subscription to the specified folder.

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

Show:
© 2014 Microsoft