DataConnectionProperties.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
Assembly :  Microsoft.VisualStudio.Data.Framework (dans Microsoft.VisualStudio.Data.Framework.dll)

Syntaxe

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

Paramètres

  • key
    Type : String

    Nom de la propriété ajoutée.

  • type
    Type : Type

    Objet Type représentant le type de la propriété.

  • value
    Type : Object

    Valeur de la propriété ajoutée.

Implémentations

IVsDataConnectionProperties.Add(String, Type, Object)

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