Table of Contents

Method FindAllAs

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

FindAllAs<TDocument>()

Returns a cursor that can be used to find all documents in this collection as TDocuments.

public virtual MongoCursor<TDocument> FindAllAs<TDocument>()

Returns

MongoCursor<TDocument>

A MongoCursor<TDocument>.

Type Parameters

TDocument

The nominal type of the documents.

FindAllAs(Type)

Returns a cursor that can be used to find all documents in this collection as TDocuments.

public virtual MongoCursor FindAllAs(Type documentType)

Parameters

documentType Type

The nominal type of the documents.

Returns

MongoCursor

A MongoCursor<TDocument>.