Table of Contents

Method As

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

As<TProjection>(IBsonSerializer<TProjection>)

Creates a client side projection that is implemented solely by using a different serializer.

public ProjectionDefinition<TSource, TProjection> As<TProjection>(IBsonSerializer<TProjection> projectionSerializer = null)

Parameters

projectionSerializer IBsonSerializer<TProjection>

The projection serializer.

Returns

ProjectionDefinition<TSource, TProjection>

A client side deserialization projection.

Type Parameters

TProjection

The type of the projection.