C# Class CSMongo.Bson.BsonDocument

Creates a BSON document where the field order is managed
Inheritance: BsonObject
Show file Open project: hugoware/CSMongo Class Usage Examples

Public Methods

Method Description
BsonDocument ( ) : System

Creates a new empty BSON document

BsonDocument ( object source ) : System

Creates a new BSON document based on the source provided

FromStream ( Stream stream ) : BsonDocument

Reads an incoming BSON document from a stream

ToBsonByteArray ( ) : byte[]

Renders the bytes required to create a document

operator ( ) : BsonDocument

Merges another object with this object - Same as calling Merge

Method Details

BsonDocument() public method

Creates a new empty BSON document
public BsonDocument ( ) : System
return System

BsonDocument() public method

Creates a new BSON document based on the source provided
public BsonDocument ( object source ) : System
source object
return System

FromStream() public static method

Reads an incoming BSON document from a stream
public static FromStream ( Stream stream ) : BsonDocument
stream System.IO.Stream
return BsonDocument

ToBsonByteArray() public method

Renders the bytes required to create a document
public ToBsonByteArray ( ) : byte[]
return byte[]

operator() public static method

Merges another object with this object - Same as calling Merge
public static operator ( ) : BsonDocument
return BsonDocument