This enumeration specifies the DataColumn.ColumnMapping property, which determines how a column’s value is written when the DataSet.WriteXml( ) method is called. Each column can be mapped to an element (Element), which is the default; an attribute of the row element (Attribute); omitted (Hidden ); or set to a text node within the element (SimpleContent). There can be only one SimpleContent column in a table.

public enum MappingType {

   Element = 1,

   Attribute = 2,

   SimpleContent = 3,

   Hidden = 4



System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) MappingType

Returned By


Passed To

DataColumn.{ColumnMapping, DataColumn( )}

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.