This document is archived and information here might be outdated.  Recommended version.


IRelationshipClass.DeleteRelationshipsForObject Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IR > IRelationshipClass Interface > IRelationshipClass.DeleteRelationshipsForObject Method
ArcGIS Developer Help

IRelationshipClass.DeleteRelationshipsForObject Method

Deletes all relationships that apply to a specified object.

[Visual Basic .NET]
Public Sub DeleteRelationshipsForObject ( _
    ByVal anObject As IObject _
)
[C#]
public void DeleteRelationshipsForObject (
    IObject anObject
);
[C++]
HRESULT DeleteRelationshipsForObject(
  IObject* anObject
);
[C++]
Parameters
anObject [in]

anObject is a parameter of type IObject*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The DeleteRelationshipsForObject method is used for removing all of the relationships in the relationship class that the specified object belongs to.  Note that this method is bi-directional; the specified object could belong to the origin class or destination class.

This method should be called within an edit session.

See Also

IRelationshipClass Interface