This topic has not yet been rated - Rate this topic

Environment.CurrentDirectory Property

April 12, 2014

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:
© 2014 Microsoft. All rights reserved.