MSFT_Volume 類別的 GetCorruptionCount 方法

擷取磁碟區損毀計數。

語法

UInt32 GetCorruptionCount(
  [out] UInt32 CorruptionCount,
  [out] String ExtendedStatus
);

參數

CorruptionCount [out]

磁碟區的損毀計數。

ExtendedStatus [out]

包含內嵌 MSFT_StorageExtendedStatus 物件的字串。

此參數可讓記憶體提供者傳回擴充 (實作特定) 錯誤資訊。

傳回值

成功 (0)

不支援 (1)

未指定的錯誤 (2)

時 (3)

失敗 (4)

無效的參數 (5)

拒絕存取 (40001)

規格需求

需求
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 [僅限傳統型應用程式]
命名空間 Root\Microsoft\Windows\Storage
MOF Storagewmi.mof

另請參閱

MSFT_Volume