A string that contains the path of the current working directory, and does not end with a backslash (\).
Type Reason System.Security.SecurityException The caller does not have the required permission. UnauthorizedAccessException The caller does not have the required permission.
The current directory is distinct from the original directory, which is the one from which the process was started.
For a list of common I/O tasks, see Common I/O Tasks.
Type | Reason |
---|---|
System.Security.Permissions.FileIOPermission | Requires permission to access path information for the current directory. See System.Security.Permissions.FileIOPermissionAccess.PathDiscovery |