Platform Core .NET Assemblies API
CreateDirectory Method
See Also  Send Feedback
Terrasoft.IO Namespace > IDirectory Interface : CreateDirectory Method
path
The directory to create.

Glossary Item Box

Creates all directories and subdirectories in the specified path unless they already exist.

Syntax

 
C#
 
 

Parameters

path
The directory to create.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionpath is null.
System.ArgumentException

path is a zero-length string, contains only white space, or contains one or more invalid characters.

-or-

path is prefixed with, or contains, only a colon character (:).

System.IO.IOException

The directory specified by path is a file.

-or-

The network name is not known.

System.UnauthorizedAccessExceptionThe caller does not have the required permission.
System.IO.DirectoryNotFoundExceptionThe specified path is invalid (for example, it is on an unmapped drive).
System.NotSupportedExceptionpath contains a colon character (:) that is not part of a drive label ("C:\").

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.