RelatedEnd.IRelatedEnd.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes an object from the related end.
Overloads
IRelatedEnd.Remove(IEntityWithRelationships) |
Removes an object from the collection at the related end. |
IRelatedEnd.Remove(Object) |
Removes an object from the related end if the object is part of the related end. |
IRelatedEnd.Remove(IEntityWithRelationships)
Removes an object from the collection at the related end.
virtual bool System.Data.Objects.DataClasses.IRelatedEnd.Remove(System::Data::Objects::DataClasses::IEntityWithRelationships ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Remove;
bool IRelatedEnd.Remove (System.Data.Objects.DataClasses.IEntityWithRelationships entity);
abstract member System.Data.Objects.DataClasses.IRelatedEnd.Remove : System.Data.Objects.DataClasses.IEntityWithRelationships -> bool
override this.System.Data.Objects.DataClasses.IRelatedEnd.Remove : System.Data.Objects.DataClasses.IEntityWithRelationships -> bool
Function Remove (entity As IEntityWithRelationships) As Boolean Implements IRelatedEnd.Remove
Parameters
- entity
- IEntityWithRelationships
The entity instance to remove from the collection.
Returns
A value that indicates whether the object was removed.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the RelatedEnd instance is cast to an IRelatedEnd interface.
The IRelatedEnd.Remove method is only maintained for compatibility with previous versions of the .NET Framework.
Applies to
IRelatedEnd.Remove(Object)
Removes an object from the related end if the object is part of the related end.
virtual bool System.Data.Objects.DataClasses.IRelatedEnd.Remove(System::Object ^ entity) = System::Data::Objects::DataClasses::IRelatedEnd::Remove;
bool IRelatedEnd.Remove (object entity);
abstract member System.Data.Objects.DataClasses.IRelatedEnd.Remove : obj -> bool
override this.System.Data.Objects.DataClasses.IRelatedEnd.Remove : obj -> bool
Function Remove (entity As Object) As Boolean Implements IRelatedEnd.Remove
Parameters
- entity
- Object
An entity instance to remove from the related end.
Returns
true
if the entity was successfully removed; otherwise, false
.
Implements
Remarks
If the source entity object is attached to a cache, the relationship is marked for deletion.