Collapse the table of content
Expand the table of content
Expand Minimize

ExchangeService.SubscribeToPullNotifications method

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


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

The IDs of the folder to be subscribed to.

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.

Type: System.String

An optional watermark that represents a previously opened subscription.

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

© 2015 Microsoft