Method PopulateFromServiceAsync
PopulateFromServiceAsync(QueryParameters, Boolean, 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 |
---|---|---|
Query |
parameters | The Query |
System. |
clearCache | A value indicating whether to clear existing table data before loading new results. If |
System. |
outFields | The attribute fields to include in the result. |
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous populate from service operation. The value of the task
result is a Feature |
Remarks
Use the default (empty) QueryParameters to get all features from the service.
Specifying null
or an empty System.Collections.Generic.IEnumerable<T> for outFields
will result in the default set of outfields being used. WFS is only compatible with a subset
of possible queries defined by Query
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.14 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |
Relevant samples
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 |
---|---|---|
Query |
parameters | The Query |
System. |
clearCache | A value indicating whether to clear existing table data before loading new results. |
System. |
outFields | The attribute fields to include in the result. |
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous populate from service operation. The value of the task result is a Feature |
Remarks
Use the default (empty) Querynull
or an empty collection for outfields, then the default set of outfields are used.
WFS is compatible with a subset of possible queries defined by Query
You must ensure that the Feature
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.14 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |
PopulateFromServiceAsync(String, Boolean)
Asynchronously populates the table using an XML query.
Declaration
public Task<FeatureQueryResult> PopulateFromServiceAsync(string xmlRequest, bool clearCache)
Parameters
Type | Name | Description |
---|---|---|
System. |
xmlRequest | An XML-encoded GetFeature request. |
System. |
clearCache | A value indicating whether to clear existing table data before loading new results. |
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous populate from service operation. The value of the task result is a Feature |
Remarks
The schema of the query result must match or be a subset of the schema of the table. The XML query must be made against the same feature type represented by the WFS feature table.
You must ensure that the Feature
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |
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 |
---|---|---|
System. |
xmlRequest | An XML-encoded GetFeature request. |
System. |
clearCache | A value indicating whether to clear existing table data before loading new results. |
System. |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
System. |
A task that represents the asynchronous populate from service operation. The value of the task result is a Feature |
Remarks
Use XML to perform queries that aren't possible with Query
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.14 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |