Method FindAllAs
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>
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
TypeThe nominal type of the documents.