Click or drag to resize

FieldsTDocument Class

A builder for specifying which fields of a document the server should return.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.BuildersFieldsTDocument

Namespace:  MongoDB.Driver.Builders
Assembly:  MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax
public static class Fields<TDocument>

Type Parameters

TDocument
The type of the document.

The FieldsTDocument type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberNull
Gets a null value with a type of IMongoFields.
Top
Methods
  NameDescription
Public methodStatic memberElemMatchTValue
Returns the first matching element in the array specified by name.
Public methodStatic memberExclude
Adds one or more field names to be excluded from the results.
Public methodStatic memberInclude
Adds one or more field names to be included in the results.
Public methodStatic memberMetaTextScore
Specifies the name of field to hold the computed relevance score for text search.
Public methodStatic memberSliceTValue(ExpressionFuncTDocument, IEnumerableTValue, Int32)
Adds a slice to be included in the results.
Public methodStatic memberSliceTValue(ExpressionFuncTDocument, IEnumerableTValue, Int32, Int32)
Adds a slice to be included in the results.
Top
See Also