C# Класс MongoDB.Driver.MongoCollectionSettings

The settings used to access a collection.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ApplyDefaultValues void
MongoCollectionSettings System
MongoCollectionSettings System

Открытые методы

Метод Описание
Clone ( ) : MongoCollectionSettings

Creates a clone of the settings.

Equals ( object obj ) : bool

Compares two MongoCollectionSettings instances.

Freeze ( ) : MongoCollectionSettings

Freezes the settings.

FrozenCopy ( ) : MongoCollectionSettings

Returns a frozen copy of the settings.

GetHashCode ( ) : int

Gets the hash code.

MongoCollectionSettings ( ) : System

Initializes a new instance of the MongoCollectionSettings class.

ToString ( ) : string

Returns a string representation of the settings.

Приватные методы

Метод Описание
ApplyDefaultValues ( MongoDatabaseSettings databaseSettings ) : void
MongoCollectionSettings ( MongoDatabase database, string collectionName, Type defaultDocumentType ) : System
MongoCollectionSettings ( string collectionName, bool assignIdOnInsert, Type defaultDocumentType, GuidRepresentation guidRepresentation, ReadPreference readPreference, WriteConcern writeConcern ) : System

Описание методов

Clone() публичный Метод

Creates a clone of the settings.
public Clone ( ) : MongoCollectionSettings
Результат MongoCollectionSettings

Equals() публичный Метод

Compares two MongoCollectionSettings instances.
public Equals ( object obj ) : bool
obj object The other instance.
Результат bool

Freeze() публичный Метод

Freezes the settings.
public Freeze ( ) : MongoCollectionSettings
Результат MongoCollectionSettings

FrozenCopy() публичный Метод

Returns a frozen copy of the settings.
public FrozenCopy ( ) : MongoCollectionSettings
Результат MongoCollectionSettings

GetHashCode() публичный Метод

Gets the hash code.
public GetHashCode ( ) : int
Результат int

MongoCollectionSettings() публичный Метод

Initializes a new instance of the MongoCollectionSettings class.
public MongoCollectionSettings ( ) : System
Результат System

ToString() публичный Метод

Returns a string representation of the settings.
public ToString ( ) : string
Результат string