Class RuntimeObservableCollection<T>
This Collection handles internal ArcGIS Runtime collections and is functionally equivalent to System.Collections.ObjectModel.ObservableCollection{T}. This type is for internal use only and is not meant to be used directly. Instead use the concrete subclasses provided.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime
Assembly: Esri.ArcGISRuntime.dll
Syntax
public abstract class RuntimeObservableCollection<T> : RuntimeCollection<T>
Type Parameters
| Name | Description |
|---|---|
| T | The item type in the collection. |
Methods
| Name | Description |
|---|---|
| AddRange(IEnumerable<T>) | Adds the elements of the specified collection to the end of the RuntimeCollection<T>. |
| BlockReentrancy() | Disallow reentrant attempts to change this collection. E.g. a event handler of the CollectionChanged event is not allowed to make changes to this collection. |
| CheckReentrancy() | Check and assert for reentrant attempts to change this collection. |
| ClearItems() | Called by base class Collection<T> when the list is being cleared; raises a CollectionChanged event to any listeners. |
| InsertItem(Int32, T) | Called by base class Collection<T> when an item is added to list; raises a CollectionChanged event to any listeners. |
| MoveItem(Int32, Int32) | Called by base class ObservableCollection<T> when an item is to be moved within the list; raises a CollectionChanged event to any listeners. |
| OnCollectionChanged(NotifyCollectionChangedEventArgs) | Raises the CollectionChanged event with the provided arguments. |
| OnPropertyChanged(PropertyChangedEventArgs) | Raises a PropertyChanged event (per |
| OnPropertyChanged(String) | Raises a PropertyChanged event. |
| RemoveItem(Int32) | Called by base class Collection<T> when an item is removed from list; raises a CollectionChanged event to any listeners. |
| SetItem(Int32, T) | Called by base class Collection<T> when an item is set in list; raises a CollectionChanged event to any listeners. |
Events
| Name | Description |
|---|---|
| CollectionChanged | Occurs when the collection changes, either by adding or removing an item. |
| PropertyChanged | Do not use. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.13 |
| .NET Framework | 100.0 - 100.8 |
| .NET 5 | 100.11 |
| .NET Core 3.1 | 100.7 - 100.8 |
| Xamarin.Android | 100.0 - 100.13 |
| Xamarin.iOS | 100.0 - 100.8 |
| UWP | 100.0 - 100.15 |