Table of Contents

Method Clone

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

Clone<TDocument>()

Creates a clone of the cursor.

public virtual MongoCursor<TDocument> Clone<TDocument>()

Returns

MongoCursor<TDocument>

A clone of the cursor.

Type Parameters

TDocument

The type of the documents returned.

Clone<TDocument>(IBsonSerializer)

Creates a clone of the cursor.

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

Parameters

serializer IBsonSerializer

The serializer to use.

Returns

MongoCursor<TDocument>

A clone of the cursor.

Type Parameters

TDocument

The type of the documents returned.

Clone(Type)

Creates a clone of the cursor.

public virtual MongoCursor Clone(Type documentType)

Parameters

documentType Type

The type of the documents returned.

Returns

MongoCursor

A clone of the cursor.

Clone(Type, IBsonSerializer)

Creates a clone of the cursor.

public virtual MongoCursor Clone(Type documentType, IBsonSerializer serializer)

Parameters

documentType Type

The type of the documents returned.

serializer IBsonSerializer

The serializer to use.

Returns

MongoCursor

A clone of the cursor.