IOCSPPropertyCollection::CreateProperty method (certadm.h)
The CreateProperty method creates a new property and adds it to a property set.
Syntax
HRESULT CreateProperty(
[in] const BSTR bstrPropName,
[in] const VARIANT *pVarPropValue,
[out] IOCSPProperty **ppVal
);
Parameters
[in] bstrPropName
A string that contains the name of the new property object.
[in] pVarPropValue
C++ | A pointer to the new property object. |
VB | The new property object. |
[out] ppVal
A pointer to an IOCSPProperty interface for the newly created object.
Return value
C++
If the method succeeds, it returns S_OK.If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
VB
An IOCSPProperty interface for the newly created object.Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only] |
Target Platform | Windows |
Header | certadm.h (include Certserv.h) |
Library | Certadm.lib |
DLL | Certadm.dll |