C#
Parameters
- path
- The directory to create.
Exception | Description |
---|---|
System.ArgumentNullException | path 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.UnauthorizedAccessException | The caller does not have the required permission. |
System.IO.DirectoryNotFoundException | The specified path is invalid (for example, it is on an unmapped drive). |
System.NotSupportedException | path contains a colon character (:) that is not part of a drive label ("C:\"). |
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