Constructs a WaterSim_DB object. Creates a new DbConnection and opens the Database if a filename is provided. Otherwise DBConnection is not created.
Namespace: WaterSimDCDCAssembly: WaterSimDCDC_API (in WaterSimDCDC_API.dll) Version: 5.0.0.10 (5.0.0.10)
Syntax
C# |
---|
public WaterSim_DB(
string TempDirectoryName,
string DataDirectoryName,
string DatabaseFilename
) |
Visual Basic |
---|
Public Sub New ( _
TempDirectoryName As String, _
DataDirectoryName As String, _
DatabaseFilename As String _
) |
Parameters
- TempDirectoryName
- Type: System..::..String
Path for temporary directory
- DataDirectoryName
- Type: System..::..String
Path to WaterSim data
- DatabaseFilename
- Type: System..::..String
Path and filename for the Database to be opened.
Exceptions
Exception | Condition |
---|
WaterSim_DB_Exception | if unable to open the database. |
See Also