Show / Hide Table of Contents

Method PopulateFromServiceAsync

PopulateFromServiceAsync(QueryParameters, Boolean, Nullable<IEnumerable<String>>)

Asynchronously populates the table using a query.

Declaration
public Task<FeatureQueryResult> PopulateFromServiceAsync(QueryParameters parameters, bool clearCache, IEnumerable<string>? outFields)
Parameters
Type Name Description
QueryParameters parameters

The QueryParameters used to filter feature results.

System.Boolean clearCache

A value indicating whether to clear existing table data before loading new results. If true, clears existing table data before populating with the query result.

System.Nullable<IEnumerable<String>> outFields

The attribute fields to include in the result.

Returns
Type Description
Task<FeatureQueryResult>

A task that represents the asynchronous populate from service operation. The value of the task result is a FeatureQueryResult object.

Remarks

Use the default (empty) QueryParameters to get all features from the service. Specifying null or an empty for outFields will result in the default set of outfields being used. WFS is only compatible with a subset of possible queries defined by QueryParameters. Where clause only works when the table is backed by a service powered by GeoServer. Spatial queries (those that set Geometry) must use Intersects.

Applies to

Platforms and versions
TargetVersions
UWP100.15

PopulateFromServiceAsync(QueryParameters, Boolean, Nullable<IEnumerable<String>>, CancellationToken)

Asynchronously populates the table using a query.

Declaration
public async Task<FeatureQueryResult> PopulateFromServiceAsync(QueryParameters parameters, bool clearCache, IEnumerable<string>? outFields, CancellationToken cancellationToken)
Parameters
Type Name Description
QueryParameters parameters

The QueryParameters used to filter feature results.

System.Boolean clearCache

A value indicating whether to clear existing table data before loading new results.

System.Nullable<IEnumerable<String>> outFields

The attribute fields to include in the result.

CancellationToken cancellationToken

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

Returns
Type Description
Task<FeatureQueryResult>

A task that represents the asynchronous populate from service operation. The value of the task result is a FeatureQueryResult object.

Remarks

Use the default (empty) QueryParameters to get all features from the service. WFS is only compatible with a subset of possible queries defined by QueryParameters. Where clause only works when the table is backed by a service powered by GeoServer. Spatial queries (those that set Geometry) must use the Intersects spatial relationship.

Applies to

Platforms and versions
TargetVersions
UWP100.15

PopulateFromServiceAsync(String, Boolean)

Asynchronously populates the table using an XML query.

Declaration
public Task<FeatureQueryResult> PopulateFromServiceAsync(string xmlRequest, bool clearCache)
Parameters
Type Name Description
String xmlRequest

An XML-encoded GetFeature request.

System.Boolean clearCache

A value indicating whether to clear existing table data before loading new results.

Returns
Type Description
Task<FeatureQueryResult>

A task that represents the asynchronous populate from service operation. The value of the task result is a FeatureQueryResult object.

Remarks

Use XML to perform queries that aren't possible with QueryParameters. The schema of the query result should match or be a subset of the schema of the table. The queried feature type must be the same feature type represented by this table.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.5 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.5 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.5 - 100.15
Xamarin.iOS100.5 - 100.15
UWP100.5 - 100.15

PopulateFromServiceAsync(String, Boolean, CancellationToken)

Asynchronously populates the table using an XML query.

Declaration
public async Task<FeatureQueryResult> PopulateFromServiceAsync(string xmlRequest, bool clearCache, CancellationToken cancellationToken)
Parameters
Type Name Description
String xmlRequest

An XML-encoded GetFeature request.

System.Boolean clearCache

A value indicating whether to clear existing table data before loading new results.

CancellationToken cancellationToken

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

Returns
Type Description
Task<FeatureQueryResult>

A task that represents the asynchronous populate from service operation. The value of the task result is a FeatureQueryResult object.

Remarks

Use XML to perform queries that aren't possible with QueryParameters. The schema of the query result should match or be a subset of the schema of the table. The queried feature type must be the same feature type represented by this table.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.