C# Класс openHistorian.Adapters.Connection

Represents an openHistorian connection.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Connection ( string historianServer, string instanceName ) : System

Creates a new openHistorian Connection.

Dispose ( ) : void

Releases all the resources used by the Connection object.

OpenDatabase ( string instanceName = null ) : openHistorian.Snap.HistorianValue>.GSF.Snap.Services.ClientDatabaseBase

Opens new database instance for this Connection.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the Connection object and optionally releases the managed resources.

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

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

Creates a new openHistorian Connection.
public Connection ( string historianServer, string instanceName ) : System
historianServer string Historian server connection string, e.g., "localhost" or "myhistorian:38402"
instanceName string Instance name of historian, e.g., "PPA".
Результат System

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

Releases all the resources used by the Connection object.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the Connection object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Opens new database instance for this Connection.
public OpenDatabase ( string instanceName = null ) : openHistorian.Snap.HistorianValue>.GSF.Snap.Services.ClientDatabaseBase
instanceName string Instance name of historian, e.g., "PPA" - or null to use default instance name associated with this connection.
Результат openHistorian.Snap.HistorianValue>.GSF.Snap.Services.ClientDatabaseBase