Represents a MongoDB collection and the settings used to access it as well as a default document type. This class is thread-safe.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 1.7.0.4714

Syntax

C#
public class MongoCollection<TDefaultDocument> : MongoCollection
Visual Basic
Public Class MongoCollection(Of TDefaultDocument) _
	Inherits MongoCollection
Visual C++
generic<typename TDefaultDocument>
public ref class MongoCollection : public MongoCollection

Type Parameters

TDefaultDocument
The default document type of the collection.

Inheritance Hierarchy

System..::..Object
  MongoDB.Driver..::..MongoCollection
    MongoDB.Driver..::..MongoCollection<(Of <(<'TDefaultDocument>)>)>

See Also