Condividi tramite


Proprietà AdoDotNetConnectionProperties.Item

Recupera o imposta un valore per una proprietà specificata nel provider di DDEX.

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

Sintassi

'Dichiarazione
Public Overrides Default Property Item ( _
    propertyName As String _
) As Object
public override Object this[
    string propertyName
] { get; set; }
public:
virtual property Object^ default[String^ propertyName] {
    Object^ get (String^ propertyName) override;
    void set (String^ propertyName, Object^ value) override;
}
abstract Item : 
        propertyName:string -> Object with get, set 
override Item : 
        propertyName:string -> Object with get, set
JScript non supporta le proprietà indicizzate.

Parametri

  • propertyName
    Tipo: String

    Il nome della proprietà per cui un valore viene recuperato o impostato.

Valore proprietà

Tipo: Object
Restituisce il valore della proprietà con il nome specificato.

Implementa

IDataConnectionProperties.Item

Eccezioni

Eccezione Condizione
ArgumentNullException

Il parametro propertyName è null.

InvalidCastException

Nell'impostare un valore della proprietà, il valore specificato non può essere convertito nel tipo di proprietà.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

AdoDotNetConnectionProperties Classe

Spazio dei nomi Microsoft.VisualStudio.Data.AdoDotNet

Item