| |||||||
DataColumn Constructor ( String, Type, String, MappingType )System.Data Namespace DataColumn Class Initializes a new instance of the DataColumn class using the specified name, data type, expression, and value that determines whether the column is an attribute. [ VB ] Overloads Public Sub New ( _ ByVal columnName As String, _ ByVal dataType As Type, _ ByVal expr As String, _ ByVal type As MappingType _ ) [ C# ] public DataColumn ( string columnName, Type dataType, string expr, MappingType type ); [ C++ ] public: DataColumn ( String* columnName, Type* dataType, String* expr, MappingType type ); [ JScript ] public function DataColumn ( columnName : String, dataType : Type, expr : String, type : MappingType ); Parameters
RemarksThe type argument sets the ColumnMapping property. The property specifies how a DataColumn is mapped when a DataSet is transformed into an XML document. For example, if the the column is named "fName", and the value it contains is "Bob", and type is set to MappingType.Attribute, the XML element would be: <Name fName = 'Bob'/> For more details on how columns are mapped to elements or attributes, see the ColumnMapping property. ExampleThe following example constructs a computed column.
See AlsoDataColumn Members DataColumn Constructor Overload List ColumnName ColumnMapping Caption DefaultValue DataTable DataType |
| ||||||
Check out related books at Amazon
© 2000-2008 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 aspxtreme