C# Class MongoDB.Driver.MongoCollectionSettings

The settings used to access a collection.
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Private Properties

Property Type Description
ApplyDefaultValues void
MongoCollectionSettings System
MongoCollectionSettings System

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

Clone() public method

Creates a clone of the settings.
public Clone ( ) : MongoCollectionSettings
return MongoCollectionSettings

Equals() public method

Compares two MongoCollectionSettings instances.
public Equals ( object obj ) : bool
obj object The other instance.
return bool

Freeze() public method

Freezes the settings.
public Freeze ( ) : MongoCollectionSettings
return MongoCollectionSettings

FrozenCopy() public method

Returns a frozen copy of the settings.
public FrozenCopy ( ) : MongoCollectionSettings
return MongoCollectionSettings

GetHashCode() public method

Gets the hash code.
public GetHashCode ( ) : int
return int

MongoCollectionSettings() public method

Initializes a new instance of the MongoCollectionSettings class.
public MongoCollectionSettings ( ) : System
return System

ToString() public method

Returns a string representation of the settings.
public ToString ( ) : string
return string