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
Syntaxpublic MailMessageCollection Instantiate(
DataRowCollection rows,
IColumnMappingCollection mappings
)
Public Function Instantiate (
rows As DataRowCollection,
mappings As IColumnMappingCollection
) As MailMessageCollection
public:
MailMessageCollection^ Instantiate(
DataRowCollection^ rows,
IColumnMappingCollection^ mappings
)
member Instantiate :
rows : DataRowCollection *
mappings : IColumnMappingCollection -> MailMessageCollection
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:
MailMessageCollectionA MailMessageCollection that generated by the template and the datasource.
See Also