Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MappingType Enumeration

 

Specifies how a DataColumn is mapped.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

[SerializableAttribute]
public enum class MappingType

Member nameDescription
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.

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.

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft