Click or drag to resize

CATemplateAdd Method

Adds certificate template to issue by a specified Certification Authority server. The method do not writes newly assigned templates to Certification Authority.

Namespace:  PKI.CertificateServices
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public bool Add(
	CertificateTemplate template
)

Parameters

template
Type: PKI.CertificateTemplatesCertificateTemplate
An CertificateTemplate object to add.

Return Value

Type: Boolean
True if certificate template is added; otherwise False.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe template parameter is null reference.
UninitializedObjectExceptionThe object in the template parameter is not initialized.
Remarks
This method returns False in the following circumstances:
  • Current CA server already contains specified certificate template in the issuance list.
  • Specified certificate template is not supported by this CA version.
If the method returns True, a IsModified property is set to True.
See Also