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: (
public bool Add(
	CertificateTemplate template


Type: PKI.CertificateTemplatesCertificateTemplate
An CertificateTemplate object to add.

Return Value

Type: Boolean
True if certificate template is added; otherwise False.
ArgumentNullExceptionThe template parameter is null reference.
UninitializedObjectExceptionThe object in the template parameter is not initialized.
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