8 references to Format
System.IO.FileSystem.DriveInfo (8)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (6)
142new FileNotFoundException(SR.Format(SR.IO_FileNotFound_FileName, path), path) : 150new DirectoryNotFoundException(SR.Format(SR.IO_PathNotFound_Path, path), path) : 161new UnauthorizedAccessException(SR.Format(SR.UnauthorizedAccess_IODenied_Path, path), inner) : 166new PathTooLongException(SR.Format(SR.IO_PathTooLong_Path, path)) : 171new IOException(SR.Format(SR.IO_SharingViolation_File, path), errorInfo.RawErrno) : 183return new IOException(SR.Format(SR.IO_FileExists_Name, path), errorInfo.RawErrno);
System\IO\DriveInfo.Unix.cs (1)
98throw new DriveNotFoundException(SR.Format(SR.IO_DriveNotFound_Drive, Name)); // match Win32
System\IO\DriveInfo.UnixOrDefault.cs (1)
29throw new ArgumentException(SR.Format(SR.Arg_InvalidDriveChars, driveName), nameof(driveName));