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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |
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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.1 - 200.6 |
Xamarin.Android | 100.1 - 100.15 |
Xamarin.iOS | 100.1 - 100.15 |
UWP | 100.1 - 200.6 |