public abstract SetCurrentDirectory ( string fullPath ) : void | ||
fullPath | string | |
return | void |
public override void SetCurrentDirectory(string fullPath) { // WinRT honors the Win32 current directory, but does not expose it, // so we use the Win32 implementation always. // This will throw UnauthorizedAccess on brokered paths. _win32FileSystem.SetCurrentDirectory(fullPath); }
public static void SetCurrentDirectory(string path) { if (path == null) { throw new ArgumentNullException(nameof(path)); } if (path.Length == 0) { throw new ArgumentException(SR.Argument_PathEmpty, nameof(path)); } string fulldestDirName = Path.GetFullPath(path); FileSystem.SetCurrentDirectory(fulldestDirName); }