ExchangeService.SubscribeToPullNotifications method
EWS Managed API
Subscribes to pull notifications.
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.PullSubscriptionThe new subscription to the specified folder.