C# Class MongoDB.Driver.MongoCredentialsStore

Represents a credentials store that contains credentials for different databases.
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
AddCredentials ( string databaseName, MongoDB.Driver.MongoCredentials credentials ) : void

Adds the credentials for a database to the store.

Clone ( ) : MongoCredentialsStore

Creates a clone of the credentials store.

Equals ( MongoCredentialsStore rhs ) : bool

Compares this credentials store to another credentials store.

Equals ( object obj ) : bool

Compares this credentials store to another credentials store.

Freeze ( ) : MongoCredentialsStore

Freezes the credentials store.

GetHashCode ( ) : int

Gets the hashcode for the credentials store.

MongoCredentialsStore ( ) : System

Creates a new instance of the MongoCredentialsStore class.

ToString ( ) : string

Returns a string representation of the credentials store.

TryGetCredentials ( string databaseName, MongoDB.Driver.MongoCredentials &credentials ) : bool

Gets the credentials for a database.

Method Details

AddCredentials() public méthode

Adds the credentials for a database to the store.
public AddCredentials ( string databaseName, MongoDB.Driver.MongoCredentials credentials ) : void
databaseName string The database name.
credentials MongoDB.Driver.MongoCredentials The credentials.
Résultat void

Clone() public méthode

Creates a clone of the credentials store.
public Clone ( ) : MongoCredentialsStore
Résultat MongoCredentialsStore

Equals() public méthode

Compares this credentials store to another credentials store.
public Equals ( MongoCredentialsStore rhs ) : bool
rhs MongoCredentialsStore The other credentials store.
Résultat bool

Equals() public méthode

Compares this credentials store to another credentials store.
public Equals ( object obj ) : bool
obj object The other credentials store.
Résultat bool

Freeze() public méthode

Freezes the credentials store.
public Freeze ( ) : MongoCredentialsStore
Résultat MongoCredentialsStore

GetHashCode() public méthode

Gets the hashcode for the credentials store.
public GetHashCode ( ) : int
Résultat int

MongoCredentialsStore() public méthode

Creates a new instance of the MongoCredentialsStore class.
public MongoCredentialsStore ( ) : System
Résultat System

ToString() public méthode

Returns a string representation of the credentials store.
public ToString ( ) : string
Résultat string

TryGetCredentials() public méthode

Gets the credentials for a database.
public TryGetCredentials ( string databaseName, MongoDB.Driver.MongoCredentials &credentials ) : bool
databaseName string The database name.
credentials MongoDB.Driver.MongoCredentials The credentials.
Résultat bool