Table of Contents

Class PullSubscription

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

Represents a pull subscription.

public sealed class PullSubscription : SubscriptionBase
Inheritance
PullSubscription
Inherited Members

Properties

MoreEventsAvailable

Gets a value indicating whether more events are available on the server. MoreEventsAvailable is undefined (null) until GetEvents is called.

public bool? MoreEventsAvailable { get; }

Property Value

bool?

Methods

BeginGetEvents(AsyncCallback, object)

Begins an asynchronous request to obtain a collection of events that occurred on the subscribed folders since the point in time defined by the Watermark property.

public IAsyncResult BeginGetEvents(AsyncCallback callback, object state)

Parameters

callback AsyncCallback

The AsyncCallback delegate.

state object

An object that contains state information for this request.

Returns

IAsyncResult

An IAsyncResult that references the asynchronous request.

BeginUnsubscribe(AsyncCallback, object)

Begins an asynchronous request to unsubscribe from the pull subscription.

public IAsyncResult BeginUnsubscribe(AsyncCallback callback, object state)

Parameters

callback AsyncCallback

The AsyncCallback delegate.

state object

An object that contains state information for this request.

Returns

IAsyncResult

An IAsyncResult that references the asynchronous request.

EndGetEvents(IAsyncResult)

Ends an asynchronous request to obtain a collection of events that occurred on the subscribed folders since the point in time defined by the Watermark property. When EndGetEvents succeeds, Watermark is updated.

public GetEventsResults EndGetEvents(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

An IAsyncResult that references the asynchronous request.

Returns

GetEventsResults

Returns a collection of events that occurred since the last watermark.

EndUnsubscribe(IAsyncResult)

Ends an asynchronous request to unsubscribe from the pull subscription.

public void EndUnsubscribe(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

An IAsyncResult that references the asynchronous request.

GetEvents()

Obtains a collection of events that occurred on the subscribed folders since the point in time defined by the Watermark property. When GetEvents succeeds, Watermark is updated.

public GetEventsResults GetEvents()

Returns

GetEventsResults

Returns a collection of events that occurred since the last watermark.

Unsubscribe()

Unsubscribes from the pull subscription.

public void Unsubscribe()