C#
Parameters
- path
- The path to which the current working directory is set.
Exception | Description |
---|---|
System.IO.IOException | An I/O error occurred. |
System.ArgumentException | path is a zero-length string, contains only white space, or contains one or more invalid characters. |
System.ArgumentNullException | path is null . |
System.Security.SecurityException | The caller does not have the required permission to access unmanaged code. |
System.IO.FileNotFoundException | The specified path was not found. |
System.IO.DirectoryNotFoundException | The specified directory was not found. |
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