Share via


IRelatedEnd.Remove Method

Definition

Overloads

Remove(IEntityWithRelationships)

Removes an object from the collection of objects at the related end.

Remove(Object)

Removes an object from the collection of objects at the related end.

Remove(IEntityWithRelationships)

Removes an object from the collection of objects at the related end.

public bool Remove (System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships entity);
abstract member Remove : System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships -> bool
Public Function Remove (entity As IEntityWithRelationships) As Boolean

Parameters

entity
IEntityWithRelationships

The object to remove from the collection. entity must implement IEntityWithRelationships .

Returns

true if entity was successfully removed, false if entity was not part of the IRelatedEnd .

Applies to

Remove(Object)

Removes an object from the collection of objects at the related end.

public bool Remove (object entity);
abstract member Remove : obj -> bool
Public Function Remove (entity As Object) As Boolean

Parameters

entity
Object

An object to remove from the collection.

Returns

true if entity was successfully removed; false if entity was not part of the IRelatedEnd .

Applies to