Show / Hide Table of Contents

Method SelectFeaturesAsync

SelectFeaturesAsync(QueryParameters, SelectionMode)

Selects the features that match the criteria in the QueryParameters object and adds them to the current list of selected features GetSelectedFeaturesAsync().

Declaration
public Task<FeatureQueryResult> SelectFeaturesAsync(QueryParameters parameters, SelectionMode mode)
Parameters
Type Name Description
QueryParameters parameters

The definition of the query to submit to the feature table.

SelectionMode mode

Defines how the list of currently selected features will be updated with the features returned from the query.

Returns
Type Description
Task<FeatureQueryResult>

The task object representing the asynchronous select features operation. The value of the task result is a FeatureQueryResult object.

See Also
SelectFeature(Feature)
SelectFeatures(IEnumerable<Feature>)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
Relevant samples
Edit and sync features: Synchronize offline edits with a feature service.
Feature layer selection: Select features in a feature layer.

SelectFeaturesAsync(QueryParameters, SelectionMode, CancellationToken)

Selects the features that match the criteria in the QueryParameters object and adds them to the current list of selected features GetSelectedFeaturesAsync().

Declaration
public Task<FeatureQueryResult> SelectFeaturesAsync(QueryParameters parameters, SelectionMode mode, CancellationToken cancellationToken)
Parameters
Type Name Description
QueryParameters parameters

The definition of the query to submit to the feature table.

SelectionMode mode

Defines how the list of currently selected features will be updated with the features returned from the query.

CancellationToken cancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns
Type Description
Task<FeatureQueryResult>

The task object representing the asynchronous select features operation. The value of the task result is a FeatureQueryResult object.

See Also
SelectFeature(Feature)
SelectFeatures(IEnumerable<Feature>)

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.14
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.