Fetches the document referred to by the DBRef, deserialized as a TDocument.

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

Syntax

C#
public virtual TDocument FetchDBRefAs<TDocument>(
	MongoDBRef dbRef
)
Visual Basic
Public Overridable Function FetchDBRefAs(Of TDocument) ( _
	dbRef As MongoDBRef _
) As TDocument
Visual C++
public:
generic<typename TDocument>
virtual TDocument FetchDBRefAs(
	MongoDBRef^ dbRef
)

Parameters

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

Type Parameters

TDocument
The nominal type of the document to fetch.

Return Value

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

See Also