IX509CertificateRequestPkcs10::PublicKey property

The PublicKey property retrieves the IX509PublicKey object that contains the public key included in the certificate request.

This property is read-only.

Syntax


HRESULT get_PublicKey(
  [out] IX509PublicKey **ppValue
);

Property value

Address of a variable that receives a pointer to an IX509PublicKey interface that represents the key.

Error codes

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.

Name/valueMeaning
CERTSRV_E_PROPERTY_EMPTY

The key could not be found.

OLE_E_BLANK

The object is not initialized.

Remarks

You must initialize the IX509CertificateRequestPkcs10 object before calling this property. For more information, see any of the following methods:

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

CertEnroll.h

DLL

CertEnroll.dll

See also

IX509CertificateRequestPkcs10

 

 

Community Additions

ADD
Show: