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

    FavoritesChangedEvent Class
    Provides information when the favorites collection is changed.
    Object Model
    FavoritesChangedEvent ClassSubscriptionToken ClassSubscriptionToken Class
    Syntax
    public sealed class FavoritesChangedEvent : ArcGIS.Core.Events.CompositePresentationEvent<EventArgs> 
    Example
    FavoritesChangedEvent
    ArcGIS.Desktop.Core.Events.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, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also