C# Class MongoDB.Driver.MongoCredentialsStore

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

Public Methods

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

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.
return void

Clone() public method

Creates a clone of the credentials store.
public Clone ( ) : MongoCredentialsStore
return MongoCredentialsStore

Equals() public method

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

Equals() public method

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

Freeze() public method

Freezes the credentials store.
public Freeze ( ) : MongoCredentialsStore
return MongoCredentialsStore

GetHashCode() public method

Gets the hashcode for the credentials store.
public GetHashCode ( ) : int
return int

MongoCredentialsStore() public method

Creates a new instance of the MongoCredentialsStore class.
public MongoCredentialsStore ( ) : System
return System

ToString() public method

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

TryGetCredentials() public method

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.
return bool