Compartir a través de


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

'Declaración
Private Sub Add ( _
    item As DataProvider _
) Implements ICollection(Of DataProvider).Add
void ICollection<DataProvider>.Add(
    DataProvider item
)
private:
virtual void Add(
    DataProvider^ item
) sealed = ICollection<DataProvider^>::Add
private abstract Add : 
        item:DataProvider -> unit 
private override Add : 
        item:DataProvider -> unit 
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.

.NET Framework Security

See Also

Reference

DataProviderManager Class

Microsoft.VisualStudio.Data Namespace