Show / Hide Table of Contents

Method QueryRelatedFeaturesAsync

QueryRelatedFeaturesAsync(ArcGISFeature)

Asynchronously queries for related features of a given feature in all relationships.

Declaration
public Task<IReadOnlyList<RelatedFeatureQueryResult>> QueryRelatedFeaturesAsync(ArcGISFeature feature)
Parameters
Type Name Description
ArcGISFeature feature

The feature for which to query related features.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<RelatedFeatureQueryResult>>

A task that represents the asynchronous query related features operation. The value of the task result contains a list of RelatedFeatureQueryResult object.

Remarks

The origin and all destination tables must be associated with the same map, either as a feature source for a layer or added to the map via its table collection. Otherwise, the query will return no results.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
Relevant samples
List related features: List features related to the selected feature.

QueryRelatedFeaturesAsync(ArcGISFeature, RelatedQueryParameters)

Asynchronously queries for related features of a given feature in a specific relationship.

Declaration
public Task<IReadOnlyList<RelatedFeatureQueryResult>> QueryRelatedFeaturesAsync(ArcGISFeature feature, RelatedQueryParameters parameters)
Parameters
Type Name Description
ArcGISFeature feature

The feature for which to query related features.

RelatedQueryParameters parameters

Describes the relationship and the query to perform.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<RelatedFeatureQueryResult>>

A task that represents the asynchronous query related features operation. The value of the task result contains a list of RelatedFeatureQueryResult object.

Remarks

The origin and all destination tables must be associated with the same map, either as a feature source for a layer or added to the map via its table collection. Otherwise, the query will return no results.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.1 - 200.7
Xamarin.Android100.1 - 100.15
Xamarin.iOS100.1 - 100.15
UWP100.1 - 200.7
Relevant samples
Map image layer tables: Find features in a spatial table related to features in a non-spatial table.
In This Article
Back to top Copyright © 2022 Esri.