ICertPropertyArchived::Initialize method (certenroll.h)
The Initialize method initializes the object from a Boolean value that specifies whether the certificate has been archived.
Syntax
HRESULT Initialize(
[in] VARIANT_BOOL ArchivedValue
);
Parameters
[in] ArchivedValue
A VARIANT_BOOL variable that identifies whether the certificate has been archived.
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 |
---|---|
|
The object is already initialized. |
Remarks
Call the SetValueOnCertificate method to associate the property with a certificate. Call the Archived property to retrieve the Boolean value.
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 |