ArcObjects Library Reference  (GeoDatabase)    

IRelationshipClass2 Interface

Provides access to members that get related object row pairs within a query filter specification.

Product Availability

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

Members

Description
Method AddRelationshipRule Adds a relationship rule to this relationship class.
Read-only property BackwardPathLabel The backward path label for the relationship class.
Read-only property Cardinality The cardinality for the relationship class.
Method CreateRelationship Creates a new relationship between the two specified objects.
Method DeleteRelationship Deletes the relationship that associates the two specified objects.
Method DeleteRelationshipRule Deletes a relationship rule from this relationship class.
Method DeleteRelationshipsForObject Deletes all relationships that apply to a specified object.
Method DeleteRelationshipsForObjectSet Deletes all relationships that apply to the specified origin or destination object set.
Read-only property DestinationClass The destination object class.
Read-only property DestinationForeignKey The relationship destination foreign Key.
Read-only property DestinationPrimaryKey The relationship destination primary Key.
Read-only property FeatureDataset The feature dataset, if any, to which this relationship class belongs.
Read-only property ForwardPathLabel The forward path label for the relationship class.
Method GetObjectsMatchingObjectArray Gets rows pairs of objects that are related to the specified origin or destination object array, that also meet the query filter expression.
Method GetObjectsMatchingObjectSet Gets rows pairs of objects that are related to the specified origin or destination object set.
Method GetObjectsMatchingObjectSetEx Gets rows pairs of objects that are related to the specified origin or destination object set, that also meet the query filter expression.
Method GetObjectsRelatedToObject Gets the objects that are related to the specified object.
Method GetObjectsRelatedToObjectSet Gets the objects that are related to the specified origin or destination object set.
Method GetRelationship Get the relationship that associates the two specified objects.
Method GetRelationshipsForObject Get all relationships that apply to a specified object.
Method GetRelationshipsForObjectSet Get all relationships that apply to the specified origin or destination object set.
Read-only property IsAttributed Indicates if the relationships in this relationship class have attributes.
Read-only property IsComposite Indicates if the relationship class represents a composite relationship in which the origin object class represents the composite object.
Read-only property Notification The notification direction for the relationship class.
Read-only property OriginClass The origin object class.
Read-only property OriginForeignKey The relationship origin foreign Key.
Read-only property OriginPrimaryKey The relationship origin primary Key.
Read-only property RelationshipClassID The relationship class ID.
Read-only property RelationshipRules The relationship rules that apply to this relationship class.

Inherited Interfaces

Interfaces Description
IRelationshipClass Provides access to members that return information about the relationship class, create relationships, relationship rules and get related objects.

CoClasses that implement IRelationshipClass2

CoClasses and Classes Description
AttributedRelationshipClass AttributedRelationshipClass Object.
MemoryRelationshipClass A relationship class object the is stored in memory.
RelationshipClass RelationshipClass Object.

Remarks

The IRelationshipClass2 interface was added to provide a method to get matching objects.

An AttributedRelationshipClass is a special kind of relationship class and is also a kind of table known as the relationship table. For non-attributed relationship classes, the relationships are stored with the objects themselves in the foreign key values. For attributed relationship classes, the relationships are defined by the objects in conjunction with the rows in the relationship table.

A good way of testing whether you have an AttributedRelationshipClass object is as follows.

If TypeOf pRelClass Is ITable Then Debug.Print
  "Attributed Relationship Class"
End If

See Also

esriRelRole Constants | RelationshipClass Class | IRelationshipClassEvents Interface

 


Feedback Send feedback on this page