Class JsonProjectionDefinition<TSource, TProjection>

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

A JSON string based projection.

public sealed class JsonProjectionDefinition<TSource, TProjection> : ProjectionDefinition<TSource, TProjection>

Type Parameters

TSource

The type of the source.

TProjection

The type of the projection.

Inheritance

JsonProjectionDefinition<TSource, TProjection>

Inherited Members

Constructors

JsonProjectionDefinition(string, IBsonSerializer)

Initializes a new instance of the BsonDocumentSortDefinition class.

Properties

Json

Gets the json.

ProjectionSerializer

Gets the projection serializer.

Methods

Render(RenderArgs)

Renders the projection to a RenderedProjectionDefinition.