Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MappingType Enumeration

Specifies how a DataColumn is mapped.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
'Declaration
<SerializableAttribute> _
Public Enumeration MappingType
Member nameDescription
Supported by the XNA FrameworkAttributeThe column is mapped to an XML attribute.
Supported by the XNA FrameworkElementThe column is mapped to an XML element.
Supported by the XNA FrameworkHiddenThe column is mapped to an internal structure.
Supported by the XNA FrameworkSimpleContentThe 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.

Private Sub GetColumnMapping(ByVal dataTable As DataTable)
    Dim dataColumn As DataColumn
    For Each dataColumn In dataTable.Columns
        Console.WriteLine(dataColumn.ColumnMapping.ToString())
    Next dataColumn
End Sub

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.