Directory.SetCurrentDirectory Method
Silverlight
This member can be used only by trusted applications. If you try to use this member in a partial-trust application, your code will throw a MethodAccessException exception. This member is security-critical, which restricts its use.
Assembly: mscorlib (in mscorlib.dll)
[SECURITY CRITICAL]
Namespace:
System.IOSets the application's current working directory to the specified directory.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- path
- Type: System.String
The path to which the current working directory is set.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.