Constructor BsonDocumentCommand
BsonDocumentCommand(BsonDocument, IBsonSerializer<TResult>)
Initializes a new instance of the BsonDocumentCommand<TResult> class.
public BsonDocumentCommand(BsonDocument document, IBsonSerializer<TResult> resultSerializer = null)
Parameters
document
BsonDocumentThe document.
resultSerializer
IBsonSerializer<TResult>The result serializer.