Condividi tramite


Metodo AdoDotNetConnectionProperties.Add (String, Type, Object)

Aggiunge una nuova proprietà alle proprietà di connessione corrente della raccolta.

Spazio dei nomi:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Sintassi

'Dichiarazione
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
)

Parametri

  • key
    Tipo: String

    Nome della proprietà che è stata aggiunta.

  • type
    Tipo: Type

    Tipo della proprietà che è stata aggiunta.

  • value
    Tipo: Object

    Valore della proprietà che è stata aggiunta.

Implementa

IVsDataConnectionProperties.Add(String, Type, Object)

Eccezioni

Eccezione Condizione
ArgumentNullException

Il parametro propertyName è nullriferimento null (Nothing in Visual Basic).

NotSupportedException

La stringa di connessione non è estensibile.

ArgumentException

La proprietà esiste già.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AdoDotNetConnectionProperties Classe

Overload Add

Spazio dei nomi Microsoft.VisualStudio.Data.Framework.AdoDotNet