asp.net.ph

DataTableMapping.ToString Method

System.Data.Common Namespace   DataTableMapping Class


Returns the current SourceTable name as a string.

[ VB ]
Overrides Public Function ToString ( ) As String

[ C# ]
public override string ToString ( );

[ C++ ]
public: String* ToString ( );

[ JScript ]
public override function ToString ( ) : String;

Return Value

The current SourceTable name as a string.

Example

The following example shows using the ToString ( ) method to return the current SourceTable name.

void AddDataTableMapping ( DataAdapter myAdapter ) {
   // get table mappings
   DataTableMappingCollection myTables = myAdapter.TableMappings;
   DataTableMapping myTable = new DataTableMapping ( "Description", "DataDescription" );
   myTables.Add ( ( Object ) myTable );
   Response.Write ( "Table " + myTable.ToString ( ) + " added to " +
      "table mapping collection " + myTables.ToString ( ) );
}
  C# VB

See Also

DataTableMapping Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph