Condividi tramite


Proprietà DbPropertyValues.Item

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Ottiene o imposta il valore della proprietà con il nome della proprietà specificato. Il valore può essere un'istanza annidata di questa classe.

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
Public Default Property Item ( _
    propertyName As String _
) As Object 
    Get 
    Set
'Utilizzo
Dim instance As DbPropertyValues 
Dim propertyName As String 
Dim value As Object 

value = instance(propertyName)

instance(propertyName) = value
public Object this[
    string propertyName
] { get; set; }
public:
property Object^ default[String^ propertyName] {
    Object^ get (String^ propertyName);
    void set (String^ propertyName, Object^ value);
}
member Item : Object with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.

Parametri

Valore proprietà

Tipo: System.Object
Valore della proprietà.

Vedere anche

Riferimento

DbPropertyValues Classe

Spazio dei nomi System.Data.Entity.Infrastructure