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

Copy
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:

MaxRTNativeException is thrown when these errors occur:

Error code Meaning

ERROR_ABANDONED_WAIT_0

One of the following conditions occurred:

  • Failed to acquire the synchronization lock.
  • Sub-directories and variables may have been closed.

ERROR_ABANDONED_WAIT_63

One of the following conditions occurred:

  • Handles are still open in other applications, and forceDelete is false.
  • The database is closed but not deleted when this error is returned.

See Also: