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