Partager via


DataSourceElementCollection.Clear Method

Removes all data source element objects from the collection.

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Syntax

'Declaration
Public Sub Clear
public void Clear()
public:
void Clear()
member Clear : unit -> unit
public function Clear()

Remarks

Removes all DataSourceElement objects from the collection. It also inserts a <clear> directive into the configuration file.

.NET Framework Security

See Also

Reference

DataSourceElementCollection Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace

DataSourceElement