GetDataTable

Obtient la DataTable dans ce message. DataTable est la classe .NET Framework.

Syntaxe

public DataTable GetDataTable() 

Paramètres

Aucun

Résultats

Aucun

Exemple

//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);