ArcObjects Library Reference (GeoDatabase)  

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 _
)
[C#]
public void RelatedObjectCreated (
    IRelationshipClass RelationshipClass,
    IObject objectThatWasCreated
);
[C++]
HRESULT RelatedObjectCreated(
  IRelationshipClass* RelationshipClass,
  IObject* objectThatWasCreated
);
[C++]

Parameters

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.

Remarks

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