Click or drag to resize

BsonBinaryReader Class

Represents a BSON reader for a binary BSON byte array.
Inheritance Hierarchy

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
public class BsonBinaryReader : BsonReader

The BsonBinaryReader type exposes the following members.

Constructors
  NameDescription
Public methodBsonBinaryReader(Stream)
Initializes a new instance of the BsonBinaryReader class.
Public methodBsonBinaryReader(Stream, BsonBinaryReaderSettings)
Initializes a new instance of the BsonBinaryReader class.
Top
Properties
  NameDescription
Public propertyBaseStream
Gets the base stream.
Public propertyBsonStream
Gets the BSON stream.
Public propertyCurrentBsonType
Gets the current BsonType.
(Inherited from BsonReader.)
Protected propertyCurrentName
Gets the current name.
(Inherited from BsonReader.)
Protected propertyDisposed
Gets whether the BsonReader has been disposed.
(Inherited from BsonReader.)
Public propertySettings
Gets the settings of the writer.
Public propertyState
Gets the current state of the reader.
(Inherited from BsonReader.)
Top
Methods
  NameDescription
Public methodClose
Closes the reader.
(Overrides BsonReader.Close().)
Public methodDispose()
Disposes of any resources used by the reader.
(Inherited from BsonReader.)
Protected methodDispose(Boolean)
Disposes of any resources used by the reader.
(Overrides BsonReader.Dispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetBookmark
Gets a bookmark to the reader's current position and state.
(Overrides BsonReader.GetBookmark().)
Public methodGetCurrentBsonType
Gets the current BsonType (calls ReadBsonType if necessary).
(Inherited from BsonReader.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsAtEndOfFile
Determines whether this reader is at end of file.
(Overrides BsonReader.IsAtEndOfFile().)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPopSettings
Pops the settings.
(Inherited from BsonReader.)
Public methodPushSettings
Pushes new settings for the reader.
(Inherited from BsonReader.)
Public methodReadBinaryData
Reads BSON binary data from the reader.
(Overrides BsonReader.ReadBinaryData().)
Public methodReadBoolean
Reads a BSON boolean from the reader.
(Overrides BsonReader.ReadBoolean().)
Public methodReadBsonType
Reads a BsonType from the reader.
(Overrides BsonReader.ReadBsonType().)
Public methodReadBytes
Reads BSON binary data from the reader.
(Overrides BsonReader.ReadBytes().)
Public methodReadDateTime
Reads a BSON DateTime from the reader.
(Overrides BsonReader.ReadDateTime().)
Public methodReadDecimal128
Reads a BSON Decimal128 from the reader.
(Overrides BsonReader.ReadDecimal128().)
Public methodReadDouble
Reads a BSON Double from the reader.
(Overrides BsonReader.ReadDouble().)
Public methodReadEndArray
Reads the end of a BSON array from the reader.
(Overrides BsonReader.ReadEndArray().)
Public methodReadEndDocument
Reads the end of a BSON document from the reader.
(Overrides BsonReader.ReadEndDocument().)
Public methodReadInt32
Reads a BSON Int32 from the reader.
(Overrides BsonReader.ReadInt32().)
Public methodReadInt64
Reads a BSON Int64 from the reader.
(Overrides BsonReader.ReadInt64().)
Public methodReadJavaScript
Reads a BSON JavaScript from the reader.
(Overrides BsonReader.ReadJavaScript().)
Public methodReadJavaScriptWithScope
Reads a BSON JavaScript with scope from the reader (call ReadStartDocument next to read the scope).
(Overrides BsonReader.ReadJavaScriptWithScope().)
Public methodReadMaxKey
Reads a BSON MaxKey from the reader.
(Overrides BsonReader.ReadMaxKey().)
Public methodReadMinKey
Reads a BSON MinKey from the reader.
(Overrides BsonReader.ReadMinKey().)
Public methodReadName()
Reads the name of an element from the reader.
(Inherited from BsonReader.)
Public methodReadName(INameDecoder)
Reads the name of an element from the reader.
(Overrides BsonReader.ReadName(INameDecoder).)
Public methodReadNull
Reads a BSON null from the reader.
(Overrides BsonReader.ReadNull().)
Public methodReadObjectId
Reads a BSON ObjectId from the reader.
(Overrides BsonReader.ReadObjectId().)
Public methodReadRawBsonArray
Reads a raw BSON array.
(Overrides BsonReader.ReadRawBsonArray().)
Public methodReadRawBsonDocument
Reads a raw BSON document.
(Overrides BsonReader.ReadRawBsonDocument().)
Public methodReadRegularExpression
Reads a BSON regular expression from the reader.
(Overrides BsonReader.ReadRegularExpression().)
Public methodReadStartArray
Reads the start of a BSON array.
(Overrides BsonReader.ReadStartArray().)
Public methodReadStartDocument
Reads the start of a BSON document.
(Overrides BsonReader.ReadStartDocument().)
Public methodReadString
Reads a BSON string from the reader.
(Overrides BsonReader.ReadString().)
Public methodReadSymbol
Reads a BSON symbol from the reader.
(Overrides BsonReader.ReadSymbol().)
Public methodReadTimestamp
Reads a BSON timestamp from the reader.
(Overrides BsonReader.ReadTimestamp().)
Public methodReadUndefined
Reads a BSON undefined from the reader.
(Overrides BsonReader.ReadUndefined().)
Public methodReturnToBookmark
Returns the reader to previously bookmarked position and state.
(Overrides BsonReader.ReturnToBookmark(BsonReaderBookmark).)
Public methodSkipName
Skips the name (reader must be positioned on a name).
(Overrides BsonReader.SkipName().)
Public methodSkipValue
Skips the value (reader must be positioned on a value).
(Overrides BsonReader.SkipValue().)
Protected methodThrowInvalidContextType
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
(Inherited from BsonReader.)
Protected methodThrowInvalidState
Throws an InvalidOperationException when the method called is not valid for the current state.
(Inherited from BsonReader.)
Protected methodThrowObjectDisposedException
Throws an ObjectDisposedException.
(Inherited from BsonReader.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodVerifyBsonType
Verifies the current state and BsonType of the reader.
(Inherited from BsonReader.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also