Class ArcGISFeature
Represents a Feature stored in an Arc
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ArcGISFeature : Feature, INotifyPropertyChanged, ILoadable
Remarks
An ArcGISFeature can contain:
- A set of attributes that describe the real-world entity it represents.
- A geometry that defines its location and shape. The geometry might contain m-values, which are typically used for linear referencing.
- Zero or more feature attachments such as images or documents.
If you create a Service
- A minimum set of attributes are available in the table, and m-values are omitted. This is an optimization for faster rendering.
- All attributes defined by the service are available in the table, including m-values, which might be NaN.
The initial state of features is determined by the feature request mode of the table. For
important details, see Feature
By default, a query on ArcGISFeatures in a minimum state will return them in the same state. To access all attributes (or the m-values) of features returned by a query, you must load the features. You can do one of the following:
-
Call Load
Async() on each feature. - Call LoadOrRefreshFeaturesAsync(IEnumerable<Feature>) and pass a collection of features to be loaded.
-
Call Query
Features with the constant LoadAsync(Query Parameters, Query Feature Fields) All , which returns all features in a fully loaded state.
For more information, see the class description for Service
Properties
Name | Description |
---|---|
Can |
Gets a value indicating whether attachments on this feature can be edited. |
Can |
Gets a value indicating whether geometry on this feature can be edited. |
Load |
Gets the load status of feature. |
Load |
Gets the load status of feature. |
Methods
Name | Description |
---|---|
Add |
Asynchronously adds a new attachment to this feature. |
Cancel |
Cancels an ongoing load. |
Delete |
Asynchronously deletes the specified attachment from this feature. |
DeleteAttachmentsAsync(IEnumerable<Attachment>) | Asynchronously deletes the specified attachment from this feature. |
Get |
Asynchronously retrieves a collection of Attachment associated with this feature. |
Get |
Gets the corresponding Feature |
Load |
Initiates loading of feature. |
Relate |
Sets up a relationship between this feature and the provided feature. |
Relate |
Sets up a relationship between this feature and the provided feature based on the given relationshipInfo. |
Retry |
Retry loading feature. |
Unrelate |
Removes the relationship between this feature and the provided feature. |
Update |
Asynchronously updates the specified Attachment of this feature. |
Events
Name | Description |
---|---|
Loaded | Occurs when feature is loaded. |
Load |
Occurs feature's LoadStatus is changed. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |