C# Класс FdoToolbox.Base.Services.FdoConnectionManager

Manages FDO connections.
Наследование: IFdoConnectionManager
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddConnection ( string name, FdoToolbox conn ) : void

Adds a FDO connection.

CanRenameConnection ( string oldName, string newName ) : ConnectionRenameResult

Determines whether this this connection can be renamed to the specified name

Clear ( ) : void

Removes all connections

GetConnection ( string name ) : FdoConnection

Gets the connection.

GetConnection ( string provider, string connStr ) : FdoConnection

Gets the connection by provider and connection string

GetConnectionNames ( ) : ICollection

Gets the connection names.

GetName ( FdoConnection conn ) : string

Gets the name of a connection

InitializeService ( ) : void

Initializes the service.

Load ( ) : void

Load all persisted connections from the session directory

NameExists ( string name ) : bool

Determines whether a connection exists (by name)

RefreshConnection ( string name ) : void

Refreshes the connection.

RemoveConnection ( string name ) : void

Removes the connection.

RenameConnection ( string oldName, string newName ) : void

Renames a connection.

Save ( ) : void

Saves all currently loaded connections to the session directory

UnloadService ( ) : void

Unloads the service.

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

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

Adds a FDO connection.
public AddConnection ( string name, FdoToolbox conn ) : void
name string The name of the connection.
conn FdoToolbox The connection.
Результат void

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

Determines whether this this connection can be renamed to the specified name
public CanRenameConnection ( string oldName, string newName ) : ConnectionRenameResult
oldName string The old name.
newName string The new name.
Результат ConnectionRenameResult

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

Removes all connections
public Clear ( ) : void
Результат void

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

Gets the connection.
public GetConnection ( string name ) : FdoConnection
name string The name of the connection.
Результат FdoToolbox.Core.Feature.FdoConnection

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

Gets the connection by provider and connection string
public GetConnection ( string provider, string connStr ) : FdoConnection
provider string The provider.
connStr string The connection string.
Результат FdoToolbox.Core.Feature.FdoConnection

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

Gets the connection names.
public GetConnectionNames ( ) : ICollection
Результат ICollection

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

Gets the name of a connection
public GetName ( FdoConnection conn ) : string
conn FdoToolbox.Core.Feature.FdoConnection The connection.
Результат string

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

Initializes the service.
public InitializeService ( ) : void
Результат void

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

Load all persisted connections from the session directory
public Load ( ) : void
Результат void

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

Determines whether a connection exists (by name)
public NameExists ( string name ) : bool
name string The name of the connection
Результат bool

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

Refreshes the connection.
public RefreshConnection ( string name ) : void
name string The name of the connection.
Результат void

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

Removes the connection.
public RemoveConnection ( string name ) : void
name string The name of the connection.
Результат void

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

Renames a connection.
public RenameConnection ( string oldName, string newName ) : void
oldName string The old name.
newName string The new name.
Результат void

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

Saves all currently loaded connections to the session directory
public Save ( ) : void
Результат void

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

Unloads the service.
public UnloadService ( ) : void
Результат void