Table of Contents

Constructor RawBsonDocument

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

RawBsonDocument(IByteBuffer)

Initializes a new instance of the RawBsonDocument class.

public RawBsonDocument(IByteBuffer slice)

Parameters

slice IByteBuffer

The slice.

Exceptions

ArgumentNullException

slice

ArgumentException

RawBsonDocument cannot be used with an IByteBuffer that needs disposing.

RawBsonDocument(byte[])

Initializes a new instance of the RawBsonDocument class.

public RawBsonDocument(byte[] bytes)

Parameters

bytes byte[]

The bytes.