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

Represents a credentials store that contains credentials for different databases.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

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

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.
Результат void

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

Creates a clone of the credentials store.
public Clone ( ) : MongoCredentialsStore
Результат MongoCredentialsStore

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

Compares this credentials store to another credentials store.
public Equals ( MongoCredentialsStore rhs ) : bool
rhs MongoCredentialsStore The other credentials store.
Результат bool

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

Compares this credentials store to another credentials store.
public Equals ( object obj ) : bool
obj object The other credentials store.
Результат bool

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

Freezes the credentials store.
public Freeze ( ) : MongoCredentialsStore
Результат MongoCredentialsStore

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

Gets the hashcode for the credentials store.
public GetHashCode ( ) : int
Результат int

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

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

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

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

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

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.
Результат bool