DataProviderManager.ICollection<DataProvider>.Add Method

Adds a new DDEX provider to the collection of available DDEX providers.

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

Syntax

'宣言
Private Sub Add ( _
    item As DataProvider _
) Implements ICollection(Of DataProvider).Add
'使用
Dim instance As DataProviderManager
Dim item As DataProvider

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

Parameters

Implements

ICollection<T>.Add(T)

Exceptions

Exception Condition
InvalidOperationException

Always thrown.

Remarks

Provides an implementation of the Add method.

Note   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

DataProviderManager Class

DataProviderManager Members

Microsoft.VisualStudio.Data Namespace