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.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
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 (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 (Inherited from Object.)
Public methodGetType (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 methodMetaTextScore
Creates a text score projection.
Public methodSlice(ExpressionFuncTSource, Object, Int32, NullableInt32)
Creates an array slice projection.
Public methodSlice(FieldDefinitionTSource, Int32, NullableInt32)
Creates an array slice projection.
Public methodToString (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