Freigeben über


RelatedEnd.IRelatedEnd.Remove-Methode (IEntityWithRelationships)

[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.]

Entfernt eine Entität aus dem verknüpften Ende. Diese Methode funktioniert genau auf die gleiche Weise wie Remove(object). Es wird aus Gründen der Abwärtskompatibilität mit früheren Versionen von IRelatedEnd verwaltet.

Namespace:  System.Data.Entity.Core.Objects.DataClasses
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function Remove ( _
    entity As IEntityWithRelationships _
) As Boolean Implements IRelatedEnd.Remove
'Usage
Dim instance As RelatedEnd 
Dim entity As IEntityWithRelationships 
Dim returnValue As Boolean 

returnValue = CType(instance, IRelatedEnd).Remove(entity)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
bool IRelatedEnd.Remove(
    IEntityWithRelationships entity
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual bool Remove(
    IEntityWithRelationships^ entity
) sealed = IRelatedEnd::Remove
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract Remove : 
        entity:IEntityWithRelationships -> bool 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override Remove : 
        entity:IEntityWithRelationships -> bool
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parameter

Rückgabewert

Typ: System.Boolean
Gibt true zurück, wenn die Entität erfolgreich entfernt wurde, gibt false zurück, wenn die Entität nicht Teil des RelatedEnd war.

Implements

IRelatedEnd.Remove(IEntityWithRelationships)

Siehe auch

Verweis

RelatedEnd Klasse

Remove-Überladung

System.Data.Entity.Core.Objects.DataClasses-Namespace