GetLogicalDrives() public static méthode

public static GetLogicalDrives ( ) : string[]
Résultat string[]
Exemple #1
0
        //Read various values
        void ReadValues()
        {
            //Check whether x64
            checkBox1.Checked = Env.Is64BitOperatingSystem;
            //Get all logical drives
            comboBox1.Items.AddRange(Env.GetLogicalDrives());
            //Get the date of the start of the computer
            var uptime = TimeSpan.FromTicks(Env.TickCount);

            monthCalendar1.TodayDate = DateTime.Now.Subtract(uptime);
            //Add some things like username
            listBox1.Items.Add("User " + Env.UserName);
            listBox1.Items.Add("Domain " + Env.UserDomainName);
            comboBox1.SelectedIndex = 0;
        }
Exemple #2
0
 public IReadOnlyList <string> GetLogicalDrives()
 {
     return(Env.GetLogicalDrives());
 }
Exemple #3
0
 public static string[] GetLogicalDrives()
 {
     return(Environment.GetLogicalDrives());
 }