Click or drag to resize
IBsonReader Interface
Represents a BSON reader.

Namespace: MongoDB.Bson.IO
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.0.1
Syntax
public interface IBsonReader : IDisposable

The IBsonReader type exposes the following members.

Methods
  NameDescription
Public methodClose
Closes the reader.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetBookmark
Gets a bookmark to the reader's current position and state.
Public methodGetCurrentBsonType
Gets the current BsonType (calls ReadBsonType if necessary).
Public methodIsAtEndOfFile
Determines whether this reader is at end of file.
Public methodReadBinaryData
Reads BSON binary data from the reader.
Public methodReadBoolean
Reads a BSON boolean from the reader.
Public methodReadBsonType
Reads a BsonType from the reader.
Public methodReadBytes
Reads BSON binary data from the reader.
Public methodReadDateTime
Reads a BSON DateTime from the reader.
Public methodReadDouble
Reads a BSON Double from the reader.
Public methodReadEndArray
Reads the end of a BSON array from the reader.
Public methodReadEndDocument
Reads the end of a BSON document from the reader.
Public methodReadInt32
Reads a BSON Int32 from the reader.
Public methodReadInt64
Reads a BSON Int64 from the reader.
Public methodReadJavaScript
Reads a BSON JavaScript from the reader.
Public methodReadJavaScriptWithScope
Reads a BSON JavaScript with scope from the reader (call ReadStartDocument next to read the scope).
Public methodReadMaxKey
Reads a BSON MaxKey from the reader.
Public methodReadMinKey
Reads a BSON MinKey from the reader.
Public methodReadName
Reads the name of an element from the reader (using the provided name decoder).
Public methodReadNull
Reads a BSON null from the reader.
Public methodReadObjectId
Reads a BSON ObjectId from the reader.
Public methodReadRawBsonArray
Reads a raw BSON array.
Public methodReadRawBsonDocument
Reads a raw BSON document.
Public methodReadRegularExpression
Reads a BSON regular expression from the reader.
Public methodReadStartArray
Reads the start of a BSON array.
Public methodReadStartDocument
Reads the start of a BSON document.
Public methodReadString
Reads a BSON string from the reader.
Public methodReadSymbol
Reads a BSON symbol from the reader.
Public methodReadTimestamp
Reads a BSON timestamp from the reader.
Public methodReadUndefined
Reads a BSON undefined from the reader.
Public methodReturnToBookmark
Returns the reader to previously bookmarked position and state.
Public methodSkipName
Skips the name (reader must be positioned on a name).
Public methodSkipValue
Skips the value (reader must be positioned on a value).
Top
Extension Methods
  NameDescription
Public Extension MethodFindElement
Positions the reader to an element by name.
(Defined by IBsonReaderExtensions.)
Public Extension MethodFindStringElement
Positions the reader to a string element by name.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadBinaryData
Reads a BSON binary data element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadBoolean
Reads a BSON boolean element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadBytes
Reads a BSON binary data element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadDateTime
Reads a BSON DateTime element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadDouble
Reads a BSON Double element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadInt32
Reads a BSON Int32 element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadInt64
Reads a BSON Int64 element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadJavaScript
Reads a BSON JavaScript element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadJavaScriptWithScope
Reads a BSON JavaScript with scope element from the reader (call ReadStartDocument next to read the scope).
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadMaxKey
Reads a BSON MaxKey element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadMinKey
Reads a BSON MinKey element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadNameOverloaded.
Reads the name of an element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadName(String)Overloaded.
Reads the name of an element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadNull
Reads a BSON null element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadObjectId
Reads a BSON ObjectId element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadRawBsonArray
Reads a raw BSON array.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadRawBsonDocument
Reads a raw BSON document.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadRegularExpression
Reads a BSON regular expression element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadString
Reads a BSON string element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadSymbol
Reads a BSON symbol element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadTimestamp
Reads a BSON timestamp element from the reader.
(Defined by IBsonReaderExtensions.)
Public Extension MethodReadUndefined
Reads a BSON undefined element from the reader.
(Defined by IBsonReaderExtensions.)
Top
Properties
  NameDescription
Public propertyCurrentBsonType
Gets the current BsonType.
Public propertyState
Gets the current state of the reader.
Top
See Also