Database.Delete Method
This method deletes the 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 void Delete(
bool forceClose,
bool forceDelete,
uint timeout
)
Parameters
forceClose
Type: Boolean
Automatically closes the folders and variables.
forceDelete
Type: Boolean
Invalidates the database to delete even if other applications are open.
timeout
Type: UInt32
The timeout duration, in milliseconds, to wait for other applications to close the database.
Return Value
Type: void
InvalidOperationException is thrown when when one of the following conditions occurred:
- The database is not open.
- Handles are still open and parameter forceClose is false.
MaxRTNativeException is thrown when these errors occur:
| Error code | Meaning |
|---|---|
|
ERROR_ABANDONED_WAIT_0 |
One of the following conditions occurred:
|
|
ERROR_ABANDONED_WAIT_63 |
One of the following conditions occurred:
|
See Also: