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

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

IRelatedObjectClassEvents.RelatedObjectCreated Method

Notifies this object class that a related object was created.

[Visual Basic .NET]
Public Sub RelatedObjectCreated ( _
    ByVal RelationshipClass As IRelationshipClass, _
    ByVal objectThatWasCreated As IObject _
public void RelatedObjectCreated (
    IRelationshipClass RelationshipClass,
    IObject objectThatWasCreated
HRESULT RelatedObjectCreated(
  IRelationshipClass* RelationshipClass,
  IObject* objectThatWasCreated
RelationshipClass [in]

RelationshipClass is a parameter of type IRelationshipClass* objectThatWasCreated [in]
objectThatWasCreated is a parameter of type IObject*

Product Availability

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


The RelationshipClass argument is useful for establishing new relationships. Since an object class may often participate in many relationships, the properties of RelationshipClass can be used to modify behavior of this method.

In order for this method to be called, the relationship class must have messaging set. If the object class which this class extension is associated with is the origin class in the relationship class, then the messaging should be set to Backward or Both. If the object class is the destination class in the relationship, then messaging should be set to Forward or Both.

See Also

IRelatedObjectClassEvents Interface | IRelationshipClass Interface | IClassExtension Interface