ICryptAttribute::InitializeFromValues 方法 (certenroll.h)

InitializeFromValues 方法會使用 IX509Attributes 物件初始化密碼編譯屬性。

語法

HRESULT InitializeFromValues(
  [in] IX509Attributes *pAttributes
);

參數

[in] pAttributes

包含屬性集合 之 IX509Attributes 介面的指標。

傳回值

如果函式成功,函式會傳回 S_OK

如果函式失敗,它會傳回 指出錯誤的 HRESULT 值。 如需常見錯誤碼的清單,請參閱 一般 HRESULT 值

備註

InitializeFromValues 方法會使用集合中的第一個 IX509Attribute 物件。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 certenroll.h
Dll CertEnroll.dll

另請參閱

ICryptAttribute

ICryptAttributes

IX509Attribute

IX509Attributes