Table of Contents

Method As

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

As<TNewResult>(IBsonSerializer<TNewResult>)

Changes the result type of the pipeline.

IAggregateFluent<TNewResult> As<TNewResult>(IBsonSerializer<TNewResult> newResultSerializer = null)

Parameters

newResultSerializer IBsonSerializer<TNewResult>

The new result serializer.

Returns

IAggregateFluent<TNewResult>

The fluent aggregate interface.

Type Parameters

TNewResult

The type of the new result.