ArcObjects Library Reference (Carto)  

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
[C#]
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
);
[C++]
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,
  IServiceData** ServiceData
);
[C++]

Parameters

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 VARIANT_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

ServiceData [out, retval]

  ServiceData is a parameter of type IServiceData

Product Availability

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

See Also

IGraphicFeatureServer2 Interface