BelhardTraining.LessonIO.Program.PrintSystemDriveInfo C# (CSharp) 메소드

PrintSystemDriveInfo() 개인적인 정적인 메소드

Демонстрация получения информации о конкретном диске В данном случае системном. Обычно это C:
private static PrintSystemDriveInfo ( ) : void
리턴 void
        private static void PrintSystemDriveInfo()
        {
            string systemDrive = Environment.GetEnvironmentVariable("SYSTEMDRIVE");
            if (systemDrive != null)
            {
                DriveInfo systemDriveInfo = new DriveInfo(systemDrive);
                PrintDriveInfo(systemDriveInfo, false);
            }
        }