Table of Contents

Method WithNewDocumentType

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument>)

Creates a new RenderArgs with new document type {TNewDocument}

public readonly RenderArgs<TNewDocument> WithNewDocumentType<TNewDocument>(IBsonSerializer<TNewDocument> serializer)

Parameters

serializer IBsonSerializer<TNewDocument>

The new serializer.

Returns

RenderArgs<TNewDocument>

A new RenderArgs{TNewDocument} instance.

Type Parameters

TNewDocument