Freigeben über


DbCollectionEntry<TEntity, TElement>.CurrentValue-Eigenschaft

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Ruft den aktuellen Wert der Navigationseigenschaft ab oder legt ihn fest. Der aktuelle Wert ist die Entität, auf die die Navigationseigenschaft verweist.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")> _
Public Overrides Property CurrentValue As ICollection(Of TElement)
    Get 
    Set
'Usage
Dim instance As DbCollectionEntry 
Dim value As ICollection(Of TElement)

value = instance.CurrentValue

instance.CurrentValue = value
[SuppressMessageAttribute("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public override ICollection<TElement> CurrentValue { get; set; }
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2227:CollectionPropertiesShouldBeReadOnly")]
public:
virtual property ICollection<TElement>^ CurrentValue {
    ICollection<TElement>^ get () override;
    void set (ICollection<TElement>^ value) override;
}
[<SuppressMessageAttribute("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")>]
abstract CurrentValue : ICollection<'TElement> with get, set
[<SuppressMessageAttribute("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")>]
override CurrentValue : ICollection<'TElement> with get, set
override function get CurrentValue () : ICollection<TElement>
override function set CurrentValue (value : ICollection<TElement>)

Eigenschaftswert

Typ: System.Collections.Generic.ICollection<TElement>
Der aktuelle Wert.

Siehe auch

Verweis

DbCollectionEntry<TEntity, TElement> Klasse

System.Data.Entity.Infrastructure-Namespace