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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |
Relevant samples
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 100.15 |