Directory.GetCurrentDirectory Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the current working directory of the application.
Assembly: mscorlib (in mscorlib.dll)
| Exception | Condition |
|---|---|
| UnauthorizedAccessException | The caller does not have the required permission. |
| NotSupportedException | The operating system is Windows CE, which does not have current directory functionality. |
Version Notes
Windows Phone
This member has a SecurityCriticalAttribute attribute. This attribute restricts this member to internal use. Application code that uses this member throws a MethodAccessException.
Show: