Click or drag to resize

ProjectionDefinition<TSource> Class

Base class for projections whose projection type is not yet known.
Inheritance Hierarchy

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.16.0+eeafbea0921243a5868b81984e1083a07c1f75bc
Syntax
public abstract class ProjectionDefinition<TSource>

Type Parameters

TSource
The type of the source.

The ProjectionDefinition<TSource> type exposes the following members.

Constructors
  NameDescription
Protected methodProjectionDefinition<TSource>
Initializes a new instance of the ProjectionDefinition<TSource> class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRender(IBsonSerializer<TSource>, IBsonSerializerRegistry)
Public methodRender(IBsonSerializer<TSource>, IBsonSerializerRegistry, LinqProvider)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Operators
Extension Methods
  NameDescription
Public Extension MethodElemMatch<TDocument, TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, FilterDefinition<TItem>)Overloaded.
Combines an existing projection with a projection that filters the contents of an array.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodElemMatch<TDocument, TItem>(Expression<Func<TDocument, IEnumerable<TItem>>>, Expression<Func<TItem, Boolean>>)Overloaded.
Combines an existing projection with a projection that filters the contents of an array.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodElemMatch<TDocument, TItem>(FieldDefinition<TDocument>, FilterDefinition<TItem>)Overloaded.
Combines an existing projection with a projection that filters the contents of an array.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodExclude<TDocument>(Expression<Func<TDocument, Object>>)Overloaded.
Combines an existing projection with a projection that excludes a field.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodExclude<TDocument>(FieldDefinition<TDocument>)Overloaded.
Combines an existing projection with a projection that excludes a field.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodInclude<TDocument>(Expression<Func<TDocument, Object>>)Overloaded.
Combines an existing projection with a projection that includes a field.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodInclude<TDocument>(FieldDefinition<TDocument>)Overloaded.
Combines an existing projection with a projection that includes a field.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodMeta<TDocument>
Combines an existing projection with a meta projection.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodMetaTextScore<TDocument>
Combines an existing projection with a text score projection.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodSlice<TDocument>(Expression<Func<TDocument, Object>>, Int32, Nullable<Int32>)Overloaded.
Combines an existing projection with an array slice projection.
(Defined by ProjectionDefinitionExtensions.)
Public Extension MethodSlice<TDocument>(FieldDefinition<TDocument>, Int32, Nullable<Int32>)Overloaded.
Combines an existing projection with an array slice projection.
(Defined by ProjectionDefinitionExtensions.)
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