IX509PublicKey::get_EncodedKey method (certenroll.h)

The EncodedKey property retrieves a byte array that contains the public key. The byte array is represented by a Unicode-encoded string.

This property is read-only.

Syntax

HRESULT get_EncodedKey(
  EncodingType Encoding,
  BSTR         *pValue
);

Parameters

Encoding

pValue

Return value

None

Remarks

Call the InitializeFromEncodedPublicKeyInfo method or the Initialize method to initialize the public key object before calling this property.

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

IX509PublicKey