asp.net.ph

MappingType Enumeration

System.Data Namespace


Specifies how a DataColumn is mapped.

Members


Member Name Description
Attribute The column is mapped to an XML attribute.
Element The column is mapped to an XML element.
Hidden The column is mapped to an internal structure.
SimpleContent The column is mapped to an XmlText node.

Remarks

The MappingType enumeration is used when getting or setting the ColumnMapping property of the DataColumn. The property determines how a column' s values will be written when the WriteXml method is called on a DataSet to write the data and schema out as an XML document.

Example

The following example returns the ColumnMapping property value for each column in a table.

private void GetColumnMapping ( DataTable myTable ) {

   foreach ( DataColumn c in myTable.Columns ) {
      Response.Write ( c.ColumnMapping.ToString ( ) );
   }
}
  C# VB

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