GetDataTable
Gets the DataTable in this message. DataTable is .NET Framework class.
Syntax
public DataTable GetDataTable()
Parameters
None.
Results
None.
Example
//DataTable is the .net Framework class
DataTable dataTable = message.GetDataTable();
DataColumn column1 = new DataColumn();
column1.DataType = System.Type.GetType("System.String");
column1.ColumnName = "AddressLine1";
dataTable.Columns.Add(column1);
DataColumn column2 = new DataColumn();
column2.DataType = System.Type.GetType("System.String");
column2.ColumnName = "City";
dataTable.Columns.Add(column2);
DataRow newRow = dataTable.NewRow();
newRow[0]="4203 Greenridge";
newRow[1]="Austin";
dataTable.Rows.Add(newRow);