Directory.Close Method
This method closes the directory 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.1.0)
Syntax
public void Close(
bool forceClose
)
Parameters
forceClose
Type: Boolean
Automatically closes any remaining handles on the directory, its sub-directories, or variables.
Return Value
Type: void
InvalidOperationException is thrown when one of the following conditions occurred:
- The directory is not open.
- The directory is a root directory.
- Handles are still open and parameter forceClose is false.
MaxRTNativeException is thrown when these errors occur:
| Error code | Meaning |
|---|---|
|
ERROR_ABANDONED_WAIT_0 |
Failed to acquire the synchronization lock. |
See Also: