Edit

ItemsChangedEventArgs Constructors

ItemsChangedEventArgs(Integer) Constructor

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Initializes a new instance of the ItemsChangedEventArgs class with the TotalItems property set to totalItems that defaults to -1.

 public ItemsChangedEventArgs(int totalItems = -1)
    {
        TotalItems = totalItems;
    }

Parameters

totalItems Integer

The total number of items that have changed. This parameter is optional and defaults to -1 if not provided.