Instantiate

TemplateEngine.Instantiate method (1 of 5)

Instantiates the template with a DataTable as datasource.

public MailMessageCollection Instantiate(DataTable table, IColumnMappingCollection mappings)
Parameter Type Description
table DataTable The DataTable, which contains the source data to instantiate the template.
mappings IColumnMappingCollection The IColumnMappingCollection, which represents the mapping between the source column in DataTable and target field in template

Return Value

A MailMessageCollection that generated by the template and the datasource.

See Also


TemplateEngine.Instantiate method (2 of 5)

Instantiates the template with a DataTable as datasource.

public MailMessageCollection Instantiate(DataTable table)
Parameter Type Description
table DataTable The DataTable, which contains the source data to instantiate the template.

Return Value

A MailMessageCollection that generated by the template and the datasource.

See Also


TemplateEngine.Instantiate method (3 of 5)

Instantiates the template with a DataRowCollection as datasource.

public MailMessageCollection Instantiate(DataRowCollection rows, IColumnMappingCollection mappings)
Parameter Type Description
rows DataRowCollection The DataRowCollection, which contains the source data to instantiate the template.
mappings IColumnMappingCollection The IColumnMappingCollection, which represents the mapping between the source column in data source and target field in template

Return Value

A MailMessageCollection that generated by the template and the datasource.

See Also


TemplateEngine.Instantiate method (4 of 5)

Instantiates the template with a DataRowCollection as datasource.

public MailMessageCollection Instantiate(DataRowCollection rows)
Parameter Type Description
rows DataRowCollection The DataRowCollection, which contains the source data to instantiate the template.

Return Value

A MailMessageCollection that generated by the template and the datasource.

See Also


TemplateEngine.Instantiate method (5 of 5)

Instantiates the template with a IDataReader as datasource.

public MailMessageCollection Instantiate(IDataReader reader)
Parameter Type Description
reader IDataReader The IDataReader, which will provide the source data to instantiate the template.

Return Value

A MailMessageCollection that generated by the template and the datasource.

See Also