Directory.CreateDirectory Method

This method creates a sub-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

Copy
public Directory CreateDirectory(
    string name,
    uint size
)

Parameters

name

Type: String
The directory name to create. The maximum name length is 63 characters.

size

Type: UInt32
The size of the directory to create.

Return Value

Type: Directory
The class that controls the directory.

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

One of the following conditions occurred:

  • The value of parameter name exceeds 63 characters in length.
  • The value of parameter size is 0.

ERROR_ALREADY_EXISTS

A directory with this name already exists in the parent directory.

ERROR_ABANDONED_WAIT_0

Failed to acquire the synchronization lock.

ERROR_NOT_ENOUGH_MEMORY

Failed to allocate memory.

See Also: