ICryptAttributes::Add 方法 (certenroll.h)

Add 方法會將 ICryptAttribute 物件新增至集合。

語法

HRESULT Add(
  [in] ICryptAttribute *pVal
);

參數

[in] pVal

代表要加入之屬性的 ICryptAttribute 介面指標。

傳回值

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

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

規格需求

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

另請參閱

ICryptAttribute

ICryptAttributes

IX509Attribute

IX509AttributeExtensions

IX509Attributes