System.IO.Error.GetExceptionForLastWin32DriveError C# (CSharp) Method

GetExceptionForLastWin32DriveError() private method

private GetExceptionForLastWin32DriveError ( String driveName ) : Exception
driveName String
return Exception
        internal static Exception GetExceptionForLastWin32DriveError(String driveName)
        {
            int errorCode = Marshal.GetLastWin32Error();
            return GetExceptionForWin32DriveError(errorCode, driveName);
        }