Database.Close Method

This method closes the database and releases the resources.

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 Close(
    bool forceClose
)

Parameters

forceClose

Type: Boolean
Automatically closes the folders and variables.

Return Value

Type: void

InvalidOperationException is thrown 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.

See Also: