Partager via


DataConnectionProperties.Add, méthode (String, Object)

Ajoute une nouvelle propriété à la collection actuelle de propriétés de connexion.

Espace de noms :  Microsoft.VisualStudio.Data.Framework
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

'Déclaration
Public Sub Add ( _
    key As String, _
    value As Object _
)
public void Add(
    string key,
    Object value
)
public:
virtual void Add(
    String^ key, 
    Object^ value
) sealed
abstract Add : 
        key:string * 
        value:Object -> unit 
override Add : 
        key:string * 
        value:Object -> unit 
public final function Add(
    key : String, 
    value : Object
)

Paramètres

Implémentations

IDictionary<TKey, TValue>.Add(TKey, TValue)

Exceptions

Exception Condition
ArgumentNullException

Le paramètre key est nullune référence null (Nothing en Visual Basic).

NotSupportedException

Les propriétés de connexion de données ne sont pas extensibles.

ArgumentException

La propriété existe déjà.

Sécurité .NET Framework

Voir aussi

Référence

DataConnectionProperties Classe

Add, surcharge

Microsoft.VisualStudio.Data.Framework, espace de noms