Gets or sets a value indicating whether the column is an attribute column.
[Visual Basic] Overridable Public Property Attribute As Boolean [C#] public bool Attribute {virtual get; virtual set;} [C++] public: __property virtual bool get_Attribute(); public: __property virtual void set_Attribute(bool); [JScript] public function get Attribute() : Boolean; public function set Attribute(Boolean);
true, if the column is an attribute column; otherwise, false.
The Attribute property specifies whether a DataColumn becomes an HTML attribute when a DataSet is transformed into an XML document. For example, if the Attribute property is set to true, and the column is named "fName," and the value it contains is "Bob," the XML element would be:
<Name fName = 'Bob'/>
DataColumn Class | DataColumn Members | System.Data Namespace