ICertProperties::Add method (certenroll.h)

The Add method adds a property to the collection. This method is web enabled.

Syntax

HRESULT Add(
  [in] ICertProperty *pVal
);

Parameters

[in] pVal

Pointer to an ICertProperty interface that represents the property to add to the collection.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.

Return code/value Description
HRESULT_FROM_WIN32(ERROR_FILE_EXISTS)
An item in the collection has the same ID as the property you specified.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

ICertProperties

ICertProperty