Library.CreateDatabase Method
This method creates a database.
Namespace:
IntervalZero.MaxRT.Libraries.VariableDatabase
Assembly:
IntervalZero.MaxRT.Libraries (in IntervalZero.MaxRT.Libraries.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public Database CreateDatabase(
string name,
uint rootDirectorySize
)
Parameters
name
Type: String
The database name to open. The maximum name length is 63 characters.
rootDirectorySize
Type: UInt32
The size of the root directory.
Return Value
Type: Database
The class that controls the database.
InvalidOperationException is thrown when the library is not open.
ArgumentNullException is thrown when parameter name is null.
ArgumentException is thrown when parameter name is empty.
MaxRTNativeException is thrown when these errors occur:
| Error code | Meaning |
|---|---|
|
ERROR_INVALID_PARAMETER |
One of the following conditions occurred:
|
|
ERROR_ALREADY_EXISTS |
A database with this name already exists. |
|
ERROR_ABANDONED_WAIT_0 |
Failed to acquire the synchronization lock. |
|
ERROR_NOT_ENOUGH_MEMORY |
Failed to allocate memory. |
See Also: