Fetches the document referred to by the DBRef.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll)

Syntax

C#
public virtual BsonDocument FetchDBRef(
	MongoDBRef dbRef
)
Visual Basic
Public Overridable Function FetchDBRef ( _
	dbRef As MongoDBRef _
) As BsonDocument
Visual C++
public:
virtual BsonDocument^ FetchDBRef(
	MongoDBRef^ dbRef
)

Parameters

dbRef
Type: MongoDB.Driver..::..MongoDBRef
The MongoDBRef to fetch.

Return Value

A BsonDocument (or null if the document was not found).

Version Information

1.8.1.20

Supported in: 4.0, 3.5

See Also