常用方法
常用方法
常用方法
常用方法
private void SetStatusToAllDrives() { driveIndex = 0; queryCollection = connectionService.GetQueryCollectionFromDiskDrive("MSStorageDriver_FailurePredictStatus"); foreach (ManagementObject foundDrive in queryCollection) { if ((bool)foundDrive.Properties["PredictFailure"].Value == false) { allDrivesDictionary[driveIndex].IsOK = true; } else { allDrivesDictionary[driveIndex].IsOK = false; } driveIndex++; } }