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 ESRI Attributed Relationship Class object.
MemoryRelationshipClass A relationship class object that is stored in memory.
RelationshipClass ESRI Relationship Class object.

Remarks

The IRelationshipClass2 interface extends the IRelationshipClass interface, providing methods to retrieve related object pairs from the relationship class where the matched object satisfies the conditions of a query filter.

See Also

esriRelRole Constants | RelationshipClass Class | IRelationshipClassEvents Interface