IX509ExtensionTemplate::get_TemplateOid method (certenroll.h)

The TemplateOid property retrieves the template object identifier (OID).

This property is read-only.

Syntax

HRESULT get_TemplateOid(
  IObjectId **ppValue
);

Parameters

ppValue

Return value

None

Remarks

You must call either InitializeEncode or InitializeDecode before you can use an IX509ExtensionTemplate object. You can retrieve the following additional properties for this extension:

  • The Critical property identifies whether the extension is critical. You can also specify this property.
  • The ObjectId property retrieves the OID.
  • The MajorVersion and MinorVersion properties retrieve the version information.

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

IX509ExtensionTemplate