Show / Hide Table of Contents

Method QueryDynamicEntitiesAsync

QueryDynamicEntitiesAsync(DynamicEntityQueryParameters, CancellationToken)

Returns all dynamic entities currently matching the specified query parameters.

Declaration
public Task<DynamicEntityQueryResult> QueryDynamicEntitiesAsync(DynamicEntityQueryParameters parameters, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DynamicEntityQueryParameters parameters

Parameters for performing the dynamic entity query.

CancellationToken cancellationToken

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

Returns
Type Description
Task<DynamicEntityQueryResult>

The DynamicEntityQueryResult that contains all dynamic entities currently matching the specified query parameters.

Remarks

Use this method to query the dynamic entities currently stored in the data source. The query parameters can be used to filter based on track ID, geometry, spatial relationship, and attribute query string.

The query is performed on the most recent observation of each dynamic entity in the data source at the time the query is executed.

The returned DynamicEntityQueryResult object can be used to iterate over the query results.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.7 - 200.8
.NET200.7 - 300.0
.NET Windows200.7 - 300.0
.NET Android200.7 - 300.0
.NET iOS200.7 - 300.0
.NET Framework200.7 - 200.8
UWP200.7 - 200.8

QueryDynamicEntitiesAsync(IEnumerable<string>, CancellationToken)

Returns all dynamic entities with track ID values that match the specified list of track IDs.

Declaration
public Task<DynamicEntityQueryResult> QueryDynamicEntitiesAsync(IEnumerable<string> trackIds, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IEnumerable<string> trackIds

Unique dynamic entity track IDs to query for.

CancellationToken cancellationToken

A cancellation token that can be used to cancel the operation.

Returns
Type Description
Task<DynamicEntityQueryResult>

The DynamicEntityQueryResult that contains all dynamic entities with track ID values that match the specified list of track IDs.

Remarks

Use this method to query for dynamic entities from the data source that have track ID values matching the specified track IDs.

The track ID is an attribute value in a DynamicEntityDataSource that uniquely identifies a dynamic entity. For an ArcGISStreamService, the track ID attribute is defined by the TrackIdField property. For a custom DynamicEntityDataSource, the track ID attribute is defined by the EntityIdFieldName property.

The returned DynamicEntityQueryResult object can be used to iterate over the query results.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.