Click or drag to resize
BsonStreamAdapterLength Property
When overridden in a derived class, gets the length in bytes of the stream.

Namespace: MongoDB.Bson.IO
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.2.0
Syntax
public override long Length { get; }

Return Value

Type: Int64
A long value representing the length of the stream in bytes.
Exceptions
ExceptionCondition
NotSupportedExceptionA class derived from Stream does not support seeking.
ObjectDisposedExceptionMethods were called after the stream was closed.
See Also