コード例 #1
0
 public CpuInfo(ManagementObject obj)
 {
     maxClockSpeed = DeNullify.ToString(obj["MaxClockSpeed"]);
     clockSpeed    = DeNullify.ToString(obj["CurrentClockSpeed"]);
     procName      = DeNullify.ToString(obj["Name"]);
     manufacturer  = DeNullify.ToString(obj["Manufacturer"]);
     version       = DeNullify.ToString(obj["Version"]);
 }
コード例 #2
0
 public RamInfo_Internal(ManagementObject obj)
 {
     Capacity      = NumberUtil.ParseLong(DeNullify.ToString(obj["Capacity"]));
     DeviceLocator = DeNullify.ToString(obj["DeviceLocator"]);
     Speed         = NumberUtil.ParseInt(DeNullify.ToString(obj["Speed"]));
     //sb.AppendLine("Bank Label: " + obj["BankLabel"]);
     //sb.AppendLine("Capacity: " + obj["Capacity"]);
     //sb.AppendLine("Data Width: " + obj["DataWidth"]);
     //sb.AppendLine("Description: " + obj["Description"]);
     //sb.AppendLine("Device Locator: " + obj["DeviceLocator"]);
     //sb.AppendLine("Form Factor: " + obj["FormFactor"]);
     //sb.AppendLine("Hot Swappable: " + obj["HotSwappable"]);
     //sb.AppendLine("Manufacturer: " + obj["Manufacturer"]);
     //sb.AppendLine("Memory Type: " + obj["MemoryType"]);
     //sb.AppendLine("Name: " + obj["Name"]);
     //sb.AppendLine("Part Number: " + obj["PartNumber"]);
     //sb.AppendLine("Position In Row: " + obj["PositionInRow"]);
     //sb.AppendLine("Speed: " + obj["Speed"]);
     //sb.AppendLine("Tag: " + obj["Tag"]);
     //sb.AppendLine("Type Detail: " + obj["TypeDetail"]);
 }
コード例 #3
0
 public GpuInfo(ManagementObject obj)
 {
     Name          = DeNullify.ToString(obj["Name"]);
     DriverVersion = DeNullify.ToString(obj["DriverVersion"]);
 }