Table of Contents

Class BsonReaderBookmark

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

Represents a bookmark that can be used to return a reader to the current position and state.

public abstract class BsonReaderBookmark
Inheritance
BsonReaderBookmark
Derived
Inherited Members
Extension Methods

Constructors

BsonReaderBookmark(BsonReaderState, BsonType, string)

Initializes a new instance of the BsonReaderBookmark class.

protected BsonReaderBookmark(BsonReaderState state, BsonType currentBsonType, string currentName)

Parameters

state BsonReaderState

The state of the reader.

currentBsonType BsonType

The current BSON type.

currentName string

The name of the current element.

Properties

CurrentBsonType

Gets the current BsonType;

public BsonType CurrentBsonType { get; }

Property Value

BsonType

CurrentName

Gets the name of the current element.

public string CurrentName { get; }

Property Value

string

State

Gets the current state of the reader.

public BsonReaderState State { get; }

Property Value

BsonReaderState