Table of Contents

Method SetSerializer

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

SetSerializer(IBsonSerializer<TDocument>)

Sets the serializer.

public virtual MongoCursor<TDocument> SetSerializer(IBsonSerializer<TDocument> serializer)

Parameters

serializer IBsonSerializer<TDocument>

The serializer.

Returns

MongoCursor<TDocument>

The cursor (so you can chain method calls to it).