Show / Hide Table of Contents

Class QueryParameters

Represents the parameters to perform a query on a dataset.

Inheritance
System.Object
QueryParameters
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class QueryParameters
Remarks

These parameters provide attribute, spatial, and temporal criteria that you can use to filter features. You can define attribute criteria using a standard SQL expression based on the available attribute fields, spatial criteria using a geometry and a spatial relationship (such as within, contains, intersect), or temporal filters using a single date/time, or a range. You can also control how the results are sorted and whether to return geometry.

In addition to querying features in a table, you can also use these parameters to count specific features, calculate the extent of features, select features in layers, and populate service-based tables. If the query method produces a set of features, they are returned in a FeatureQueryResult.

Different query parameter objects are available to query data sources such as related features (RelatedQueryParameters), statistical information (StatisticsQueryParameters), and portals (PortalQueryParameters). Specialized query parameters also exist for working with utility networks and routing.

Constructors

Name Description
QueryParameters()

Initializes a new instance of the QueryParameters class.

Properties

Name Description
Geometry

Gets or sets the Geometry that (along with the SpatialRelationship) defines features to be included in the query.

MaxAllowableOffset

Gets or sets the maximum allowable offset.

MaxFeatures

Gets or sets the maximum number of features the query should return.

ObjectIds

Gets the object IDs of the features to query.

OrderByFields

Gets the fields by which query results will be ordered.

OutSpatialReference

Gets or sets the SpatialReference of feature results' geometry.

ResultOffset

Gets or sets the starting offset of results to fetch. This is useful for paging through results.

ReturnGeometry

Gets or sets a value indicating whether to return Geometry in the feature results.

SpatialRelationship

Gets or sets the type of SpatialRelationship (along with the Geometry) that defines features to be included in the query.

TimeExtent

Gets or sets the TimeExtent used to query features in a time-aware feature layer.

WhereClause

Gets or sets the attribute expression that defines features to be included in the query.

See Also

QueryFeaturesAsync(QueryParameters)
QueryFeatureCountAsync(QueryParameters)
QueryExtentAsync(QueryParameters)
SelectFeaturesAsync(QueryParameters, SelectionMode)
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>)

Applies to

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.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Browse WFS layers: Browse a WFS service for layers and add them to the map.
Edit and sync features: Synchronize offline edits with a feature service.
In This Article
Back to top Copyright © 2022 Esri.