Click or drag to resize

ProjectionDefinitionBuilderTSource Class

A builder for a projection.
Inheritance Hierarchy
SystemObject
  MongoDB.DriverProjectionDefinitionBuilderTSource

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntax
public sealed class ProjectionDefinitionBuilder<TSource>

Type Parameters

TSource
The type of the source.

The ProjectionDefinitionBuilderTSource type exposes the following members.

Constructors
  NameDescription
Public methodProjectionDefinitionBuilderTSource
Initializes a new instance of the ProjectionDefinitionBuilderTSource class
Top
Methods
  NameDescription
Public methodAsTProjection
Creates a client side projection that is implemented solely by using a different serializer.
Public methodCombine(ProjectionDefinitionTSource)
Combines the specified projections.
Public methodCombine(IEnumerableProjectionDefinitionTSource)
Combines the specified projections.
Public methodElemMatchTItem(ExpressionFuncTSource, IEnumerableTItem, FilterDefinitionTItem)
Creates a projection that filters the contents of an array.
Public methodElemMatchTItem(ExpressionFuncTSource, IEnumerableTItem, ExpressionFuncTItem, Boolean)
Creates a projection that filters the contents of an array.
Public methodElemMatchTItem(FieldDefinitionTSource, FilterDefinitionTItem)
Creates a projection that filters the contents of an array.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExclude(ExpressionFuncTSource, Object)
Creates a projection that excludes a field.
Public methodExclude(FieldDefinitionTSource)
Creates a projection that excludes a field.
Public methodExpressionTProjection
Creates a projection based on the expression.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInclude(ExpressionFuncTSource, Object)
Creates a projection that includes a field.
Public methodInclude(FieldDefinitionTSource)
Creates a projection that includes a field.
Public methodMeta
Creates a meta projection.
Public methodMetaSearchHighlights
Creates a search highlights projection.
Public methodMetaSearchScore
Creates a search score projection.
Public methodMetaSearchScoreDetails
Creates a search score details projection.
Public methodMetaTextScore
Creates a text score projection.
Public methodSearchMeta(ExpressionFuncTSource, Object)
Creates a search metadata projection.
Public methodSearchMeta(FieldDefinitionTSource)
Creates a search metadata projection.
Public methodSlice(ExpressionFuncTSource, Object, Int32)
Creates an array slice projection.
Public methodSlice(FieldDefinitionTSource, Int32)
Creates an array slice projection.
Public methodSlice(ExpressionFuncTSource, Object, Int32, Int32)
Creates an array slice projection.
Public methodSlice(FieldDefinitionTSource, Int32, Int32)
Creates an array slice projection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also