TemplateEngine Class

This class uses specified template to construct E-Mail messages.
Inheritance Hierarchy
SystemObject
  Aspose.Email.Tools.MergingTemplateEngine

Namespace:  Aspose.Email.Tools.Merging
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public sealed class TemplateEngine

The TemplateEngine type exposes the following members.

Constructors
  NameDescription
Public methodTemplateEngine(String)
Initializes a new instance of the TemplateEngine class.
Public methodTemplateEngine(MailMessage)
Initializes a new instance of the TemplateEngine class.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInstantiate(DataRowCollection)
Instantiates the template with a DataRowCollection as datasource.
Public methodInstantiate(DataTable)
Instantiates the template with a DataTable as datasource.
Public methodInstantiate(IDataReader)
Instantiates the template with a IDataReader as datasource.
Public methodInstantiate(DataRowCollection, IColumnMappingCollection)
Instantiates the template with a DataRowCollection as datasource.
Public methodInstantiate(DataTable, IColumnMappingCollection)
Instantiates the template with a DataTable as datasource.
Public methodIsRoutineRegistered
Determines if a name of template routine is registered in the template engine.
Public methodMerge(DataRow)
Merge a source DataRow with the template.
Public methodMerge(MailMessage)
Merge a source MailMessage with the template
Public methodRegisterRoutine
Registers the template routine to the temaplate engine.
Public methodReset
Resets this instance.
Public methodToString (Inherited from Object.)
Public methodUnregisterRoutine
Unregister the template routine from the template engine by name.
See Also