DbPropertyValues.Item 屬性
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得或設定已指定屬性名稱的屬性值。 此值可能是此類別的巢狀執行個體。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Default Property Item ( _
propertyName As String _
) As Object
Get
Set
'用途
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.
參數
- propertyName
類型:System.String
屬性值
類型:System.Object
屬性的值。