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
'Declaration
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
item
Type: Microsoft.VisualStudio.Data.DataProviderDDEX provider object to add.
Implements
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.