Directory.GetCurrentDirectory Method
Silverlight
When it is called by trusted applications, gets the current working directory of the application.
Namespace: System.IO
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. |
Platform Notes
Silverlight for Windows Phone
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.