Mono Class Library: Mono.Unix.UnixEnvironment Overview | Members

Mono.Unix.UnixEnvironment.CurrentDirectory Property

Gets or sets the current directory of the process.

public static string CurrentDirectory { set; get; }

See Also

UnixDirectoryInfo.GetCurrentDirectory
UnixDirectoryInfo.SetCurrentDirectory

Value

A string containing the current directory of the process.

Exceptions

TypeReason
UnauthorizedAccessException Permission to read or search a component of the current working directory was denied. [Mono.Unix.Native.Errno.EACCESS]
System.IO.FileNotFoundException The current working directory has been unlinked. [Mono.Unix.Native.Errno.ENOENT]

Remarks

The value argument is permitted to specify relative or absolute path information. Relative path information is interpreted as relative to the current working directory.
Note: To obtain the current working directory, see UnixDirectoryInfo.GetCurrentDirectory.

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0