ExchangeService.SubscribeToPullNotifications method

Subscribes to pull notifications.

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

'Declaration
Public Function SubscribeToPullNotifications ( _
	folderIds As IEnumerable(Of FolderId), _
	timeout As Integer, _
	watermark As String, _
	ParamArray eventTypes As EventType() _
) As PullSubscription
'Usage
Dim instance As ExchangeService
Dim folderIds As IEnumerable(Of FolderId)
Dim timeout As Integer
Dim watermark As String
Dim eventTypes As EventType()
Dim returnValue As PullSubscription

returnValue = instance.SubscribeToPullNotifications(folderIds, _
	timeout, watermark, 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: