Clear Method
Collapse the table of content
Expand the table of content

DataColumnCollection::Clear Method ()

 

Clears the collection of any columns.

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

public:
void Clear()

If the collection is successfully changed by adding or removing columns, the CollectionChanged event occurs.

The following example clears the columns collection.

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

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