Share via


Win32_EncryptableVolume 類別的 GetIdentificationField 方法

Win32_EncryptableVolume類別的GetIdentificationField方法會傳回磁片區中繼資料中可用的識別碼字串。

語法

uint32 GetIdentificationField(
  [out] string IdentificationField
);

參數

IdentificationField [out]

類型: 字串

字串,指定指派給磁片區的識別欄位。

傳回值

類型: uint32

此方法會在失敗時傳回下列其中一個代碼或另一個錯誤碼。

傳回碼/值 描述
S_OK
0 (0x0)
此方法成功。
FVE_E_LOCKED_VOLUME
2150694912 (0x80310000)
BitLocker 磁片磁碟機加密會鎖定此磁片磁碟機。 您必須從主控台解除鎖定此磁片區。
FVE_E_NOT_ACTI加值稅ED
2150694920 (0x80310008)
磁碟區上未啟用 BitLocker。 新增金鑰保護裝置以啟用 BitLocker。

 

規格需求

需求
最低支援的用戶端
Windows 7 企業版,Windows 7 旗艦版 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2008 R2 [僅限桌面應用程式]
命名空間
Root\CIMV2\Security\MicrosoftVolumeEncryption
MOF
Win32_encryptablevolume.mof

另請參閱

Win32_EncryptableVolume