asp.net.ph

DataColumnMapping.ToString Method

System.Data.Common Namespace   DataColumnMapping Class


Returns the current SourceColumn 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 SourceColumn name as a string.

Example

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

void AddDataColumnMapping ( DataTableMapping myTableMap ) {
   // get column mappings
   DataColumnMappingCollection myFieldsMaps = myTableMap.ColumnMappings;
   DataColumnMapping myMap = new DataColumnMapping ( "Description", "DataDescription" );
   myFieldsMaps.Add ( ( Object ) myMap );
   Response.Write ( "column " + myMap.ToString ( ) + " added to " +
      "column mapping collection " + myFieldsMaps.ToString ( ) );
}
  C# VB

See Also

DataColumnMapping 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