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.11.0+cb27a82ea70620ad1acad8058809be8302ae4f2a
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 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
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