ItemAdded Method
ItemAdded(Action<IHCollection<T>, CollectionItemEventArgs<T>>)
Adds an handler which runs when an item is added.
Declaration
public CollectionItemEventHandlers<T> ItemAdded(Action<IHCollection<T>, CollectionItemEventArgs<T>> handler)
Parameters
Action<IHCollection<T>, CollectionItemEventArgs<T>> | handler | The handler. |
Returns
CollectionItemEventHandlers<T> | The handlers. |
ItemAdded(Func<IHCollection<T>, CollectionItemEventArgs<T>, ValueTask>)
Adds an handler which runs when an item is added.
Declaration
public CollectionItemEventHandlers<T> ItemAdded(Func<IHCollection<T>, CollectionItemEventArgs<T>, ValueTask> handler)
Parameters
Func<IHCollection<T>, CollectionItemEventArgs<T>, ValueTask> | handler | The handler. |
Returns
CollectionItemEventHandlers<T> | The handlers. |