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