Condividi tramite


Metodo DataConnectionProperties.Add (String, Type, Object)

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

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

Sintassi

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

Parametri

  • key
    Tipo: String

    Nome della proprietà che è stata aggiunta.

  • type
    Tipo: Type

    Un oggetto Type che rappresenta il tipo della proprietà.

  • value
    Tipo: Object

    Valore della proprietà che è stata aggiunta.

Implementa

IVsDataConnectionProperties.Add(String, Type, Object)

Eccezioni

Eccezione Condizione
ArgumentNullException

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

NotSupportedException

Le proprietà di connessione dati non sono estendibili.

ArgumentException

La proprietà esiste già.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataConnectionProperties Classe

Overload Add

Spazio dei nomi Microsoft.VisualStudio.Data.Framework