Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds a data source to the DDEX data source collection.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Private Sub Add ( _
item As DataSource _
) Implements ICollection(Of DataSource).Add
void ICollection<DataSource>.Add(
DataSource item
)
private:
virtual void Add(
DataSource^ item
) sealed = ICollection<DataSource^>::Add
private abstract Add :
item:DataSource -> unit
private override Add :
item:DataSource -> unit
JScript does not support explicit interface implementations.
Parameters
- item
Type: Microsoft.VisualStudio.Data.DataSource
DDEX data source
Implements
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Always thrown. |
Remarks
Implements the Add method.
Hinweis
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.