ArcGIS Pro 3.0 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 sealed class FavoritesChangedEvent : ArcGIS.Core.Events.CompositePresentationEvent<EventArgs> 
    Public NotInheritable Class FavoritesChangedEvent 
       Inherits ArcGIS.Core.Events.CompositePresentationEvent(Of 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, Windows 8.1

    See Also