ExchangeService.SubscribeToPullNotifications Method

Definition

Subscribes to pull notifications.

public:
 Microsoft::Exchange::WebServices::Data::PullSubscription ^ SubscribeToPullNotifications(System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::FolderId ^> ^ folderIds, int timeout, System::String ^ watermark, ... cli::array <Microsoft::Exchange::WebServices::Data::EventType> ^ eventTypes);
public Microsoft.Exchange.WebServices.Data.PullSubscription SubscribeToPullNotifications (System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.FolderId> folderIds, int timeout, string watermark, params Microsoft.Exchange.WebServices.Data.EventType[] eventTypes);
Public Function SubscribeToPullNotifications (folderIds As IEnumerable(Of FolderId), timeout As Integer, watermark As String, ParamArray eventTypes As EventType()) As PullSubscription

Parameters

folderIds
IEnumerable<FolderId>

The IDs of the folder to be subscribed to.

timeout
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
String

An optional watermark that represents a previously opened subscription.

eventTypes
EventType[]

The event types to be subscribed to.

Returns

The new subscription to the specified folder.

Remarks

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

Applies to