Condividi tramite


Proprietà IDataConnectionProperties.Item

Rappresenta un'istanza di una proprietà di tipo e valore specificato.

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

Sintassi

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

Parametri

  • propertyName
    Tipo: String

    Nome della proprietà.

Valore proprietà

Tipo: Object
Un'istanza della proprietà con il nome specificato.

Eccezioni

Eccezione Condizione
ArgumentNullException

Il parametro propertyName è null.

InvalidCastException

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

IDataConnectionProperties Interfaccia

Spazio dei nomi Microsoft.Data.ConnectionUI