ArcObjects Library Reference (GeoDatabase)  

IRelationshipClass2.GetObjectsMatchingObjectArray Method

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

[Visual Basic .NET]
Public Function GetObjectsMatchingObjectArray ( _
    ByVal srcObjectArray As IArray, _
    ByVal queryFilterAppliedToMatchingObjects As IQueryFilter, _
    ByVal returnAllObjectMatches As Boolean _
) As IRelClassEnumRowPairs
[C#]
public IRelClassEnumRowPairs GetObjectsMatchingObjectArray (
    IArray srcObjectArray,
    IQueryFilter queryFilterAppliedToMatchingObjects,
    bool returnAllObjectMatches
);
[C++]
HRESULT GetObjectsMatchingObjectArray(
  IArray* srcObjectArray,
  IQueryFilter* queryFilterAppliedToMatchingObjects,
  VARIANT_BOOL returnAllObjectMatches,
  IRelClassEnumRowPairs** matchedPairRows
);
[C++]

Parameters

srcObjectArray [in]

  srcObjectArray is a parameter of type IArray

queryFilterAppliedToMatchingObjects [in]

  queryFilterAppliedToMatchingObjects is a parameter of type IQueryFilter

returnAllObjectMatches [in]   returnAllObjectMatches is a parameter of type VARIANT_BOOL matchedPairRows [out, retval]

  matchedPairRows is a parameter of type IRelClassEnumRowPairs

Product Availability

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

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.

See Also

IRelationshipClass2 Interface