TemplateEngineInstantiate Method (DataRowCollection, IColumnMappingCollection)

Instantiates the template with a DataRowCollection as datasource.

Namespace:  Aspose.Email.Tools.Merging
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public MailMessageCollection Instantiate(
	DataRowCollection rows,
	IColumnMappingCollection mappings
)

Parameters

rows
Type: System.DataDataRowCollection
The DataRowCollection, which contains the source data to instantiate the template.
mappings
Type: System.DataIColumnMappingCollection
The IColumnMappingCollection, which represents the mapping between the source column in data source and target field in template

Return Value

Type: MailMessageCollection
A MailMessageCollection that generated by the template and the datasource.
See Also