This document is archived and information here might be outdated.  Recommended version.

IGraphicFeatureServer2.QueryRelatedObjects2 Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGraphicFeatureServer2 Interface > IGraphicFeatureServer2.QueryRelatedObjects2 Method
ArcGIS Developer Help

IGraphicFeatureServer2.QueryRelatedObjects2 Method

[Visual Basic .NET]
Public Function QueryRelatedObjects2 ( _
    ByVal gdbVersion As String, _
    ByVal sourceLayerOrTableID As Integer, _
    ByVal objectIDsInSource As ILongArray, _
    ByVal RelationshipID As Integer, _
    ByVal targetDefinitionExpression As String, _
    ByVal targetTableProps As String, _
    ByVal groupBySourceOIDs As Boolean, _
    ByVal outSR As ISpatialReference, _
    ByVal outTR As ITimeReference, _
    ByVal maximumAllowableOffset As Double, _
    ByVal ServiceDataOptions As IServiceDataOptions _
) As IServiceData
public IServiceData QueryRelatedObjects2 (
    string gdbVersion,
    int sourceLayerOrTableID,
    ILongArray objectIDsInSource,
    int RelationshipID,
    string targetDefinitionExpression,
    string targetTableProps,
    bool groupBySourceOIDs,
    ISpatialReference outSR,
    ITimeReference outTR,
    double maximumAllowableOffset,
    IServiceDataOptions ServiceDataOptions
HRESULT QueryRelatedObjects2(
  BSTR gdbVersion,
  long sourceLayerOrTableID,
  ILongArray* objectIDsInSource,
  long RelationshipID,
  BSTR targetDefinitionExpression,
  BSTR targetTableProps,
  VARIANT_BOOL groupBySourceOIDs,
  ISpatialReference* outSR,
  ITimeReference* outTR,
  double maximumAllowableOffset,
  IServiceDataOptions* ServiceDataOptions
gdbVersion [in]

gdbVersion is a parameter of type BSTR sourceLayerOrTableID [in]
sourceLayerOrTableID is a parameter of type long objectIDsInSource [in]
objectIDsInSource is a parameter of type ILongArray* RelationshipID [in]
RelationshipID is a parameter of type long targetDefinitionExpression [in]
targetDefinitionExpression is a parameter of type BSTR targetTableProps [in]
targetTableProps is a parameter of type BSTR groupBySourceOIDs [in]
groupBySourceOIDs is a parameter of type bool outSR [in]
outSR is a parameter of type ISpatialReference* outTR [in]
outTR is a parameter of type ITimeReference* maximumAllowableOffset [in]
maximumAllowableOffset is a parameter of type double ServiceDataOptions [in]
ServiceDataOptions is a parameter of type IServiceDataOptions*

Product Availability

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

See Also

IGraphicFeatureServer2 Interface