Table of Contents

Method GetSnapshotTime

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

GetSnapshotTime(IClientSession)

Gets the snapshot time for a snapshot session.

public static BsonTimestamp GetSnapshotTime(this IClientSession session)

Parameters

session IClientSession

The client session handle.

Returns

BsonTimestamp

The snapshot time as a BsonTimestamp.

Exceptions

InvalidOperationException

Thrown when the session is not a snapshot session.