ArcObjects Library Reference (GeoDatabase)  

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