DataSourceManager.ICollection<DataSource>.Clear Method

Clears the DDEX data source collection.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Private Sub Clear Implements ICollection(Of DataSource).Clear
'使用
Dim instance As DataSourceManager

CType(instance, ICollection(Of DataSource)).Clear()
void ICollection<DataSource>.Clear()
private:
virtual void Clear() sealed = ICollection<DataSource^>::Clear
JScript does not support explicit interface implementations.

Implements

ICollection<T>.Clear()

Exceptions

Exception Condition
InvalidOperationException

Always thrown.

Remarks

Implements the Clear method.

注意

This method is read-only for clients and therefore throws an InvalidOperationException if used in client code. Rather, the implementation reads from the registry and populates the collection.

Permissions

See Also

Reference

DataSourceManager Class

DataSourceManager Members

Microsoft.VisualStudio.Data Namespace