Method GetSnapshotTime
GetSnapshotTime(IClientSession)
Gets the snapshot time for a snapshot session.
public static BsonTimestamp GetSnapshotTime(this IClientSession session)
Parameters
sessionIClientSessionThe client session handle.
Returns
- BsonTimestamp
The snapshot time as a BsonTimestamp.
Exceptions
- InvalidOperationException
Thrown when the session is not a snapshot session.