Table of Contents

Constructor MongoDBRef

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

MongoDBRef(string, BsonValue)

Creates a MongoDBRef.

public MongoDBRef(string collectionName, BsonValue id)

Parameters

collectionName string

The name of the collection that contains the document.

id BsonValue

The Id of the document.

MongoDBRef(string, string, BsonValue)

Creates a MongoDBRef.

public MongoDBRef(string databaseName, string collectionName, BsonValue id)

Parameters

databaseName string

The name of the database that contains the document.

collectionName string

The name of the collection that contains the document.

id BsonValue

The Id of the document.