共用方式為


IX509CertificateTemplates::Add 方法 (certenroll.h)

Add 方法會將IX509CertificateTemplate 物件新增至集合。 此方法已啟用 Web。

語法

HRESULT Add(
  [in] IX509CertificateTemplate *pVal
);

參數

[in] pVal

要加入至集合 之 IX509CertificateTemplate 對象的指標。

傳回值

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

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

規格需求

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

另請參閱

IX509CertificateTemplate

IX509CertificateTemplates