IX509ExtensionTemplate::get_MajorVersion method (certenroll.h)
The MajorVersion property retrieves the minimum major version number of the certificate template.
This property is read-only.
Syntax
HRESULT get_MajorVersion(
LONG *pValue
);
Parameters
pValue
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 object identifier (OID).
- The MinorVersion property retrieves version information.
- The TemplateOid property retrieves the OID of the template.
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 |