Table of Contents

Method As

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

As<TResult>(IBsonSerializer<TResult>)

A simplified type of projection that changes the result type by using a different serializer.

public abstract IFindFluent<TDocument, TResult> As<TResult>(IBsonSerializer<TResult> resultSerializer)

Parameters

resultSerializer IBsonSerializer<TResult>

The result serializer.

Returns

IFindFluent<TDocument, TResult>

The fluent find interface.

Type Parameters

TResult

The type of the result.