Table of Contents

Constructor BsonStreamAdapter

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

BsonStreamAdapter(Stream, bool)

Initializes a new instance of the BsonStreamAdapter class.

public BsonStreamAdapter(Stream stream, bool ownsStream = false)

Parameters

stream Stream

The stream.

ownsStream bool

if set to true [owns stream].

Exceptions

ArgumentNullException

stream