BsonReader Class |
Namespace: MongoDB.Bson.IO
The BsonReader type exposes the following members.
Name | Description | |
---|---|---|
![]() | BsonReader |
Initializes a new instance of the BsonReader class.
|
Name | Description | |
---|---|---|
![]() | Close |
Closes the reader.
|
![]() | Dispose |
Disposes of any resources used by the reader.
|
![]() | Dispose(Boolean) |
Disposes of any resources used by the reader.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetBookmark |
Gets a bookmark to the reader's current position and state.
|
![]() | GetCurrentBsonType |
Gets the current BsonType (calls ReadBsonType if necessary).
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsAtEndOfFile |
Determines whether this reader is at end of file.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ReadBinaryData |
Reads BSON binary data from the reader.
|
![]() | ReadBoolean |
Reads a BSON boolean from the reader.
|
![]() | ReadBsonType |
Reads a BsonType from the reader.
|
![]() | ReadBytes |
Reads BSON binary data from the reader.
|
![]() | ReadDateTime |
Reads a BSON DateTime from the reader.
|
![]() | ReadDouble |
Reads a BSON Double from the reader.
|
![]() | ReadEndArray |
Reads the end of a BSON array from the reader.
|
![]() | ReadEndDocument |
Reads the end of a BSON document from the reader.
|
![]() | ReadInt32 |
Reads a BSON Int32 from the reader.
|
![]() | ReadInt64 |
Reads a BSON Int64 from the reader.
|
![]() | ReadJavaScript |
Reads a BSON JavaScript from the reader.
|
![]() | ReadJavaScriptWithScope |
Reads a BSON JavaScript with scope from the reader (call ReadStartDocument next to read the scope).
|
![]() | ReadMaxKey |
Reads a BSON MaxKey from the reader.
|
![]() | ReadMinKey |
Reads a BSON MinKey from the reader.
|
![]() | ReadName |
Reads the name of an element from the reader.
|
![]() | ReadName(INameDecoder) |
Reads the name of an element from the reader (using the provided name decoder).
|
![]() | ReadNull |
Reads a BSON null from the reader.
|
![]() | ReadObjectId |
Reads a BSON ObjectId from the reader.
|
![]() | ReadRawBsonArray |
Reads a raw BSON array.
|
![]() | ReadRawBsonDocument |
Reads a raw BSON document.
|
![]() | ReadRegularExpression |
Reads a BSON regular expression from the reader.
|
![]() | ReadStartArray |
Reads the start of a BSON array.
|
![]() | ReadStartDocument |
Reads the start of a BSON document.
|
![]() | ReadString |
Reads a BSON string from the reader.
|
![]() | ReadSymbol |
Reads a BSON symbol from the reader.
|
![]() | ReadTimestamp |
Reads a BSON timestamp from the reader.
|
![]() | ReadUndefined |
Reads a BSON undefined from the reader.
|
![]() | ReturnToBookmark |
Returns the reader to previously bookmarked position and state.
|
![]() | SkipName |
Skips the name (reader must be positioned on a name).
|
![]() | SkipValue |
Skips the value (reader must be positioned on a value).
|
![]() | ThrowInvalidContextType |
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
|
![]() | ThrowInvalidState |
Throws an InvalidOperationException when the method called is not valid for the current state.
|
![]() | ThrowObjectDisposedException |
Throws an ObjectDisposedException.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyBsonType |
Verifies the current state and BsonType of the reader.
|
Name | Description | |
---|---|---|
![]() | FindElement |
Positions the reader to an element by name.
(Defined by IBsonReaderExtensions.) |
![]() | FindStringElement |
Positions the reader to a string element by name.
(Defined by IBsonReaderExtensions.) |
![]() | ReadBinaryData |
Reads a BSON binary data element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadBoolean |
Reads a BSON boolean element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadBytes |
Reads a BSON binary data element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadDateTime |
Reads a BSON DateTime element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadDouble |
Reads a BSON Double element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadInt32 |
Reads a BSON Int32 element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadInt64 |
Reads a BSON Int64 element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadJavaScript |
Reads a BSON JavaScript element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadJavaScriptWithScope |
Reads a BSON JavaScript with scope element from the reader (call ReadStartDocument next to read the scope).
(Defined by IBsonReaderExtensions.) |
![]() | ReadMaxKey |
Reads a BSON MaxKey element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadMinKey |
Reads a BSON MinKey element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadName |
Reads the name of an element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadNull |
Reads a BSON null element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadObjectId |
Reads a BSON ObjectId element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadRawBsonArray |
Reads a raw BSON array.
(Defined by IBsonReaderExtensions.) |
![]() | ReadRawBsonDocument |
Reads a raw BSON document.
(Defined by IBsonReaderExtensions.) |
![]() | ReadRegularExpression |
Reads a BSON regular expression element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadString |
Reads a BSON string element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadSymbol |
Reads a BSON symbol element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadTimestamp |
Reads a BSON timestamp element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ReadUndefined |
Reads a BSON undefined element from the reader.
(Defined by IBsonReaderExtensions.) |
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |
Name | Description | |
---|---|---|
![]() | CurrentBsonType |
Gets the current BsonType.
|
![]() | CurrentName |
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.
|