ExchangeService.BeginSubscribeToPullNotificationsOnAllFolders method

Begins an asynchronous request to subscribe to pull notifications on all folders in a specified user's mailbox.

This method was introduced in the Exchange Web Services (EWS) Managed API 1.2.

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

'Declaration
Public Function BeginSubscribeToPullNotificationsOnAllFolders ( _
	callback As AsyncCallback, _
	state As Object, _
	timeout As Integer, _
	watermark As String, _
	ParamArray eventTypes As EventType() _
) As IAsyncResult
'Usage
Dim instance As ExchangeService
Dim callback As AsyncCallback
Dim state As Object
Dim timeout As Integer
Dim watermark As String
Dim eventTypes As EventType()
Dim returnValue As IAsyncResult

returnValue = instance.BeginSubscribeToPullNotificationsOnAllFolders(callback, _
	state, timeout, watermark, eventTypes)

Parameters

callback
Type: System.AsyncCallback

The AsyncCallback delegate.

state
Type: System.Object

An object that contains state information for the specified request.

timeout
Type: System.Int32

The duration of the time-out, in minutes, after which the subscription expires. The timeout period must be in the range from 1 through 1440.

watermark
Type: System.String

An optional watermark representing a previously opened subscription.

eventTypes
Type: []

The event types to be subscribed to.

Return value

Type: System.IAsyncResult
The event types to be subscribed to.
Show: