Table of Contents

Class ChangeFeedMetadata

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

The metadata of a change feed resource with ChangeFeedMode is initialized to AllVersionsAndDeletes.

public class ChangeFeedMetadata
Inheritance
ChangeFeedMetadata
Inherited Members
Extension Methods

Constructors

ChangeFeedMetadata(DateTime, long, ChangeFeedOperationType, long)

New instance of meta data for ChangeFeedItemChange<T> created.

public ChangeFeedMetadata(DateTime conflictResolutionTimestamp, long lsn, ChangeFeedOperationType operationType, long previousLsn)

Parameters

conflictResolutionTimestamp DateTime
lsn long
operationType ChangeFeedOperationType
previousLsn long

Properties

ConflictResolutionTimestamp

The conflict resolution timestamp.

public DateTime ConflictResolutionTimestamp { get; }

Property Value

DateTime

IsTimeToLiveExpired

Used to distinquish explicit deletes (e.g. via DeleteItem) from deletes caused by TTL expiration (a collection may define time-to-live policy for documents).

public bool IsTimeToLiveExpired { get; }

Property Value

bool

Lsn

The current logical sequence number.

public long Lsn { get; }

Property Value

long

OperationType

The change feed operation type.

public ChangeFeedOperationType OperationType { get; }

Property Value

ChangeFeedOperationType

PreviousLsn

The previous logical sequence number.

public long PreviousLsn { get; }

Property Value

long