GetDataTable
DataTable をメッセージから取得します。 DataTable は .NET Framework クラスです。
構文
public DataTable GetDataTable()
パラメータ
なし
結果
なし
例
//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);