Method PopulateFromServiceAsync
PopulateFromServiceAsync(QueryParameters, Boolean, IEnumerable<String>)
Asynchronously populates the OGC API - Features
feature collection table with the results of 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. |
Boolean | clearCache | A value indicating whether to clear existing table data before loading new results. If |
IEnumerable<System.String> | outFields | The optional list of attribute fields to include in the result. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.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 a service.
Specifying null
or an empty enumerable for outFields
will result in the
default set of outfields being used. Spatial queries (those that set
Geometry) must use Intersects.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.10 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 100.14 |
PopulateFromServiceAsync(QueryParameters, Boolean, 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. |
Boolean | clearCache | A value indicating whether to clear existing table data before loading new results. |
IEnumerable<System.String> | outFields | The optional list of 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 |
---|---|
System.Threading.Tasks.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 a service.
Specifying null
or an empty enumerable for outFields
will result in the default set of outfields being used.
Spatial queries (those that set Geometry) must use Intersects.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.10 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.10 - 100.12 |
Xamarin.Android | 100.10 - 100.15 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 100.14 |