Click or drag to resize
QueryTask Class
QueryTask
Inheritance Hierarchy

Namespace: Esri.ArcGISRuntime.Tasks.Query
Assembly: Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 10.2.7.0 (10.2.7.1234)
Syntax
public sealed class QueryTask : TaskBase

The QueryTask type exposes the following members.

Constructors
  NameDescription
Public methodQueryTask
Initializes a new instance of the QueryTask class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecuteAsync(Query)
Executes a query against an ArcGIS Server map layer. If the query is successful, the task returns a QueryResult. Otherwise, the System.Threading.Tasks.Task.Exception is set.
Public methodExecuteAsync(Query, CancellationToken)
Executes a query against an ArcGIS Server map layer. If the query is successful, the task returns a QueryResult. Otherwise, the System.Threading.Tasks.Task.Exception is set.
Public methodExecuteCountAsync(Query)
Executes a query against an ArcGIS Server map layer and counts the results. If the query is successful, the task returns an integer result. Otherwise, the System.Threading.Tasks.Task.Exception is set.
Public methodExecuteCountAsync(Query, CancellationToken)
Executes a query against an ArcGIS Server map layer and counts the results. If the query is successful, the task returns an integer result. Otherwise, the System.Threading.Tasks.Task.Exception is set.
Public methodExecuteObjectIDsQueryAsync(Query)
Executes a query against an ArcGIS Server map layer and returns just the ObjectIDs. If the query is successful, the task returns the ObjectIDs. Otherwise, the System.Threading.Tasks.Task.Exception is set.
Public methodExecuteObjectIDsQueryAsync(Query, CancellationToken)
Executes a query against an ArcGIS Server map layer and returns just the ObjectIDs. If the query is successful, the task returns the ObjectIDs. Otherwise, the System.Threading.Tasks.Task.Exception is set.
Public methodExecuteRelationshipQueryAsync(RelationshipParameters)
Executes a query to a obtain additional data from another layer/table based on a relationship defined in the service meta data.
Public methodExecuteRelationshipQueryAsync(RelationshipParameters, CancellationToken)
Executes a query to a obtain additional data from another layer/table based on a relationship defined in the service meta data.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAutoNormalize
Gets or sets a value indicating whether to automatically normalize geometry crossing the anti-meridian.
Public propertyServiceUri
Gets the service URI.
(Inherited from TaskBase.)
Public propertyToken
Gets or sets the authentication token to use.
(Inherited from TaskBase.)
Top
See Also
Supported Platforms
This type is supported on the following ArcGIS Runtime .NET SDK platforms:
Windows Desktop
Windows Phone
Windows Store
Additional Examples
Hyperlink to ExampleDescription
LayerDefinitionsDemonstrates setting numerous LayerDefinitions values on an ArcGISDynamicMapServiceLayer and visualizing the impact of the features being returned in the Map.