IX509Extension::ObjectId property

The ObjectId property retrieves the object identifier (OID) for the extension.

This property is read-only.

Syntax


HRESULT get_ObjectId(
  [out] IObjectId **ppValue
);

Property value

Address of a variable that receives a pointer to an IObjectId interface that represents the OID.

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
OLE_E_BLANK

The OID has not been initialized.

Remarks

You can specify the OID when you call the Initialize method to create an extension value.

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

IX509Extension

 

 

Show: