CurrentDirectory Property
Collapse the table of content
Expand the table of content

Environment.CurrentDirectory Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the fully qualified path of the current working directory.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static string CurrentDirectory { get; set; }

Property Value

Type: System.String
A string containing a directory path.

ExceptionCondition
IOException

An I/O error occurred.

SecurityException

The caller does not have the appropriate permission.

Version Notes

Windows Phone

 This member has a SecurityCriticalAttribute attribute on Windows Phone. This attribute restricts this member to internal use. Application code that uses this member throws a MethodAccessException.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft