ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core.Events Namespace / FavoritesChangedEvent Class
Members Example

In This Topic
    FavoritesChangedEvent Class
    In This Topic
    Provides information when the favorites collection is changed.
    Object Model
    FavoritesChangedEvent ClassSubscriptionToken ClassSubscriptionToken Class
    Syntax
    Public NotInheritable Class FavoritesChangedEvent 
       Inherits ArcGIS.Core.Events.CompositePresentationEvent(Of EventArgs)
    public sealed class FavoritesChangedEvent : ArcGIS.Core.Events.CompositePresentationEvent<EventArgs> 
    Example
    FavoritesChangedEvent
    {
      FavoritesChangedEvent.Subscribe((args) =>
      {
        // favorites have changed
        int count = FavoritesManager.Current.GetFavorites().Count;
      });
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Events.EventBase
          ArcGIS.Core.Events.CompositePresentationEvent<TPayload>
             ArcGIS.Desktop.Core.Events.FavoritesChangedEvent

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also