DataConnectionProperties.Add (Método) (String, Type, Object)

Agrega una nueva propiedad a la colección actual de propiedades de conexión.

Espacio de nombres:  Microsoft.VisualStudio.Data.Framework
Ensamblado:  Microsoft.VisualStudio.Data.Framework (en Microsoft.VisualStudio.Data.Framework.dll)

Sintaxis

'Declaración
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
)

Parámetros

  • type
    Tipo: System.Type
    Un objeto de Type que representa el tipo de la propiedad.

Implementaciones

IVsDataConnectionProperties.Add(String, Type, Object)

Excepciones

Excepción Condición
ArgumentNullException

El valor del parámetro key es nullreferencia null (Nothing en Visual Basic).

NotSupportedException

Las propiedades de conexión de datos no son extensibles.

ArgumentException

La propiedad ya existe.

Seguridad de .NET Framework

Vea también

Referencia

DataConnectionProperties Clase

Add (Sobrecarga)

Microsoft.VisualStudio.Data.Framework (Espacio de nombres)