Constructor BsonBinaryWriter
BsonBinaryWriter(Stream)
Initializes a new instance of the BsonBinaryWriter class.
public BsonBinaryWriter(Stream stream)
Parameters
stream
StreamA stream. The BsonBinaryWriter does not own the stream and will not Dispose it.
BsonBinaryWriter(Stream, BsonBinaryWriterSettings)
Initializes a new instance of the BsonBinaryWriter class.
public BsonBinaryWriter(Stream stream, BsonBinaryWriterSettings settings)
Parameters
stream
StreamA stream. The BsonBinaryWriter does not own the stream and will not Dispose it.
settings
BsonBinaryWriterSettingsThe BsonBinaryWriter settings.