Creates subdirectories on the specified path.
[Visual Basic] Public Function CreateSubdirectories( _ ByVal path As String _ ) As Directory [C#] public Directory CreateSubdirectories( string path ); [C++] public: Directory* CreateSubdirectories( String* path ); [JScript] public function CreateSubdirectories( path : String ) : Directory;
The new subdirectories.
Exception Type | Condition |
---|---|
ArgumentException | path does not specify a valid file path. |
ArgumentNullException | path is null. |
DirectoryNotFoundException | Part of the directory is not found. |
IOException | A file or directory already has the name specified by path. |
PathTooLongException | The specified path is too long. |
SecurityException | The caller does not have the required permission. |
Passing in ".." will not get the parent directory.
Note Path names are limited to 248 characters.
NGWS Runtime Security:
FileIOPermissionAccess | Write flag required for write permission to the path. |
Directory Class | Directory Members | System.IO Namespace | CreateDirectories | CreateSubdirectory