Constructor MongoDBRef
MongoDBRef(string, BsonValue)
Creates a MongoDBRef.
public MongoDBRef(string collectionName, BsonValue id)
Parameters
collectionNamestringThe name of the collection that contains the document.
idBsonValueThe Id of the document.
MongoDBRef(string, string, BsonValue)
Creates a MongoDBRef.
public MongoDBRef(string databaseName, string collectionName, BsonValue id)