Method As

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

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

As(IBsonSerializer)

Changes the result type of the pipeline.

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

Parameters

newResultSerializer IBsonSerializer

The new result serializer.

Returns

IAggregateFluent

The fluent aggregate interface.

Type Parameters

TNewResult

The type of the new result.