■ ManagementObject 클래스 : 운영 체제 정보 구하기

------------------------------------------------------------------------------------------------------------------------


TestProject.zip


Program.cs

 

 

using System;

 

namespace TestProject

{

    /// <summary>

    /// 프로그램

    /// </summary>

    class Program

    {

        //////////////////////////////////////////////////////////////////////////////////////////////////// Method

        ////////////////////////////////////////////////////////////////////////////////////////// Static

        //////////////////////////////////////////////////////////////////////////////// Private

 

        #region 프로그램 시작하기 - Main()

 

        /// <summary>

        /// 프로그램 시작하기

        /// </summary>

        private static void Main()

        {

            Console.Title = "ManagementObject 클래스 : 운영 체제 정보 구하기";

 

            OperatingSystem operatingSystem = new OperatingSystem();

 

            Console.WriteLine("CAPTION          : " + operatingSystem.Caption       );

            Console.WriteLine("CODE SET         : " + operatingSystem.CodeSet       );

            Console.WriteLine("COUNTRY CODE     : " + operatingSystem.CountryCode   );

            Console.WriteLine("BUILD NUMBER     : " + operatingSystem.BuildNumber   );

            Console.WriteLine("OS ARCHITECTURE  : " + operatingSystem.OSArchitecture);

            Console.WriteLine("OS LANGUAGE      : " + operatingSystem.OSLanguage    );

            Console.WriteLine("OS TYPE          : " + operatingSystem.OSType        );

            Console.WriteLine("PRODUCT TYPE     : " + operatingSystem.ProductType   );

        }

 

        #endregion

    }

}

 

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG