TemplateEngineInstantiate Method (DataTable, IColumnMappingCollection) |
Instantiates the template with a DataTable as datasource.
Namespace:
Aspose.Email.Tools.Merging
Assembly:
Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntaxpublic MailMessageCollection Instantiate(
DataTable table,
IColumnMappingCollection mappings
)
Public Function Instantiate (
table As DataTable,
mappings As IColumnMappingCollection
) As MailMessageCollection
public:
MailMessageCollection^ Instantiate(
DataTable^ table,
IColumnMappingCollection^ mappings
)
member Instantiate :
table : DataTable *
mappings : IColumnMappingCollection -> MailMessageCollection
Parameters
- table
- Type: System.DataDataTable
The DataTable, which contains the source data to instantiate the template. - mappings
- Type: System.DataIColumnMappingCollection
The IColumnMappingCollection, which represents the mapping between the source column in DataTable and target field in template
Return Value
Type:
MailMessageCollectionA MailMessageCollection that generated by the template and the datasource.
See Also