Class BsonReader
Represents a BSON reader for some external format (see subclasses).
- Inheritance
-
Bson
Reader
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
- Bson
Reader(Bson Reader Settings) Initializes a new instance of the BsonReader class.
Properties
- Current
Bson Type Gets the current BsonType.
- Current
Name Gets the current name.
- Disposed
Gets whether the BsonReader has been disposed.
- Settings
Gets the settings of the reader.
- State
Gets the current state of the reader.
Methods
- Close()
Closes the reader.
- Dispose()
Disposes of any resources used by the reader.
- Dispose(bool)
Disposes of any resources used by the reader.
- Get
Bookmark() Gets a bookmark to the reader's current position and state.
- Get
Current Bson Type() Gets the current BsonType (calls ReadBsonType if necessary).
- Is
AtEnd OfFile() Determines whether this reader is at end of file.
- Pop
Settings() Pops the settings.
- PushSettings(Action<BsonReaderSettings>)
Pushes new settings for the reader.
- Read
Binary Data() Reads BSON binary data from the reader.
- Read
Boolean() Reads a BSON boolean from the reader.
- Read
Bson Type() Reads a BsonType from the reader.
- Read
Bytes() Reads BSON binary data from the reader.
- Read
Date Time() Reads a BSON DateTime from the reader.
- Read
Decimal128() Reads a BSON Decimal128 from the reader.
- Read
Double() Reads a BSON Double from the reader.
- Read
End Array() Reads the end of a BSON array from the reader.
- Read
End Document() Reads the end of a BSON document from the reader.
- Read
Guid() Reads a Guid from the reader.
- Read
Guid(Guid Representation) Reads a Guid with the specified representation from the reader.
- Read
Int32() Reads a BSON Int32 from the reader.
- Read
Int64() Reads a BSON Int64 from the reader.
- Read
Java Script() Reads a BSON JavaScript from the reader.
- Read
Java Script With Scope() Reads a BSON JavaScript with scope from the reader (call ReadStartDocument next to read the scope).
- Read
Max Key() Reads a BSON MaxKey from the reader.
- Read
Min Key() Reads a BSON MinKey from the reader.
- Read
Name() Reads the name of an element from the reader.
- Read
Name(IName Decoder) Reads the name of an element from the reader (using the provided name decoder).
- Read
Null() Reads a BSON null from the reader.
- Read
Object Id() Reads a BSON ObjectId from the reader.
- Read
Raw Bson Array() Reads a raw BSON array.
- Read
Raw Bson Document() Reads a raw BSON document.
- Read
Regular Expression() Reads a BSON regular expression from the reader.
- Read
Start Array() Reads the start of a BSON array.
- Read
Start Document() Reads the start of a BSON document.
- Read
String() Reads a BSON string from the reader.
- Read
Symbol() Reads a BSON symbol from the reader.
- Read
Timestamp() Reads a BSON timestamp from the reader.
- Read
Undefined() Reads a BSON undefined from the reader.
- Return
ToBookmark(Bson Reader Bookmark) Returns the reader to previously bookmarked position and state.
- Skip
Name() Skips the name (reader must be positioned on a name).
- Skip
Value() Skips the value (reader must be positioned on a value).
- Throw
Invalid Context Type(string, Context Type, params Context Type[]) Throws an InvalidOperationException when the method called is not valid for the current ContextType.
- Throw
Invalid State(string, params Bson Reader State[]) Throws an InvalidOperationException when the method called is not valid for the current state.
- Throw
Object Disposed Exception() Throws an ObjectDisposedException.
- Verify
Bson Type(string, Bson Type) Verifies the current state and BsonType of the reader.