AdoDotNetConnectionProperties.Add, méthode (String, Type, Object)

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

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

Syntaxe

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

Paramètres

  • key
    Type : String

    Nom de la propriété ajoutée.

  • type
    Type : Type

    Type de la propriété ajoutée.

  • value
    Type : Object

    Valeur de la propriété ajoutée.

Implémentations

IVsDataConnectionProperties.Add(String, Type, Object)

Exceptions

Exception Condition
ArgumentNullException

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

NotSupportedException

La chaîne de connexion n'est pas extensible.

ArgumentException

La propriété existe déjà.

Sécurité .NET Framework

Voir aussi

Référence

AdoDotNetConnectionProperties Classe

Add, surcharge

Microsoft.VisualStudio.Data.Framework.AdoDotNet, espace de noms