Interface IRelationshipClass2

Namespace
ESRI.ArcGIS.Geodatabase
Assembly
ESRI.Server.Geodatabase.dll

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

[Guid("C9C39723-40B6-454F-A7FF-A25491C72256")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRelationshipClass2 : IRelationshipClass

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.

Properties

BackwardPathLabel

string BackwardPathLabel { get; }

Property Value

string

Cardinality

esriRelCardinality Cardinality { get; }

Property Value

esriRelCardinality

DestinationClass

IObjectClass DestinationClass { get; }

Property Value

IObjectClass

DestinationForeignKey

string DestinationForeignKey { get; }

Property Value

string

DestinationPrimaryKey

string DestinationPrimaryKey { get; }

Property Value

string

FeatureDataset

IFeatureDataset FeatureDataset { get; }

Property Value

IFeatureDataset

ForwardPathLabel

string ForwardPathLabel { get; }

Property Value

string

IsAttributed

bool IsAttributed { get; }

Property Value

bool

IsComposite

bool IsComposite { get; }

Property Value

bool

Notification

esriRelNotification Notification { get; }

Property Value

esriRelNotification

OriginClass

IObjectClass OriginClass { get; }

Property Value

IObjectClass

OriginForeignKey

string OriginForeignKey { get; }

Property Value

string

OriginPrimaryKey

string OriginPrimaryKey { get; }

Property Value

string

RelationshipClassID

int RelationshipClassID { get; }

Property Value

int

RelationshipRules

IEnumRule RelationshipRules { get; }

Property Value

IEnumRule

Methods

AddRelationshipRule(IRule)

void AddRelationshipRule(IRule Rule)

Parameters

Rule IRule

CreateRelationship(IObject, IObject)

IRelationship CreateRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Returns

IRelationship

DeleteRelationship(IObject, IObject)

void DeleteRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

DeleteRelationshipRule(IRule)

void DeleteRelationshipRule(IRule Rule)

Parameters

Rule IRule

DeleteRelationshipsForObject(IObject)

void DeleteRelationshipsForObject(IObject anObject)

Parameters

anObject IObject

DeleteRelationshipsForObjectSet(ISet)

void DeleteRelationshipsForObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

GetObjectsMatchingObjectArray(IArray, IQueryFilter, bool)

Gets rows pairs of objects that are related to the specified origin or destination object array, that also meet the query filter expression.

IRelClassEnumRowPairs GetObjectsMatchingObjectArray(IArray srcObjectArray, IQueryFilter queryFilterAppliedToMatchingObjects, bool returnAllObjectMatches)

Parameters

srcObjectArray IArray
queryFilterAppliedToMatchingObjects IQueryFilter
returnAllObjectMatches bool

Returns

IRelClassEnumRowPairs

Remarks

The returnAllObjectMatches parameter indicates whether the first matching object or if all matching objects are returned. A value of True will return all object matches.

GetObjectsMatchingObjectSet(ISet)

IRelClassEnumRowPairs GetObjectsMatchingObjectSet(ISet srcObjectSet)

Parameters

srcObjectSet ISet

Returns

IRelClassEnumRowPairs

GetObjectsMatchingObjectSetEx(ISet, IQueryFilter, bool)

Gets rows pairs of objects that are related to the specified origin or destination object set, that also meet the query filter expression.

IRelClassEnumRowPairs GetObjectsMatchingObjectSetEx(ISet srcObjectSet, IQueryFilter queryFilterAppliedToMatchingObjects, bool returnAllObjectMatches)

Parameters

srcObjectSet ISet
queryFilterAppliedToMatchingObjects IQueryFilter
returnAllObjectMatches bool

Returns

IRelClassEnumRowPairs

Remarks

The returnAllObjectMatches parameter indicates whether the first matching object or if all matching objects are returned. A value of True will return all object matches.

GetObjectsRelatedToObject(IObject)

ISet GetObjectsRelatedToObject(IObject anObject)

Parameters

anObject IObject

Returns

ISet

GetObjectsRelatedToObjectSet(ISet)

ISet GetObjectsRelatedToObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Returns

ISet

GetRelationship(IObject, IObject)

IRelationship GetRelationship(IObject OriginObject, IObject DestinationObject)

Parameters

OriginObject IObject
DestinationObject IObject

Returns

IRelationship

GetRelationshipsForObject(IObject)

IEnumRelationship GetRelationshipsForObject(IObject anObject)

Parameters

anObject IObject

Returns

IEnumRelationship

GetRelationshipsForObjectSet(ISet)

IEnumRelationship GetRelationshipsForObjectSet(ISet anObjectSet)

Parameters

anObjectSet ISet

Returns

IEnumRelationship