TemplateEngine.Instantiate
Contents
[
Hide
]Instantiate(DataTable, IColumnMappingCollection)
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
- class MailMessageCollection
- class TemplateEngine
- namespace Aspose.Email.Tools.Merging
- assembly Aspose.Email
Instantiate(DataTable)
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
- class MailMessageCollection
- class TemplateEngine
- namespace Aspose.Email.Tools.Merging
- assembly Aspose.Email
Instantiate(DataRowCollection, IColumnMappingCollection)
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
- class MailMessageCollection
- class TemplateEngine
- namespace Aspose.Email.Tools.Merging
- assembly Aspose.Email
Instantiate(DataRowCollection)
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
- class MailMessageCollection
- class TemplateEngine
- namespace Aspose.Email.Tools.Merging
- assembly Aspose.Email
Instantiate(IDataReader)
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
- class MailMessageCollection
- class TemplateEngine
- namespace Aspose.Email.Tools.Merging
- assembly Aspose.Email