Directory.Rename Method
This method renames a directory.
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 Rename(
string name
)
Parameters
name
Type: String
The new directory name.
Return Value
Type: void
InvalidOperationException is thrown when the directory 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 |
The value of parameter name exceeds 63 characters in length. |
|
ERROR_ALREADY_EXISTS |
A directory with this name already exists in the parent directory. |
|
ERROR_ABANDONED_WAIT_0 |
Failed to acquire the synchronization lock. |
See Also: