ActiveReports 10
ListenCollection<TModel,TValue>(TModel,Expression<Func<TModel,TValue>>,Action<NotifyCollectionChangedEventArgs>) Method

GrapeCity.ActiveReports.Viewer.Win.v10 Assembly > GrapeCity.Viewer.Common.Model Namespace > ActiveModelListenExtensions Class > ListenCollection Method : ListenCollection<TModel,TValue>(TModel,Expression<Func<TModel,TValue>>,Action<NotifyCollectionChangedEventArgs>) Method
Performs specific action on particular CollectionChanged event
Syntax
'Declaration
 
Public Overloads Shared Function ListenCollection
    (Of TModel As {Class, INotifyPropertyChanged},
     TValue As {Class, INotifyCollectionChanged})( _
   ByVal model As TModel, _
   ByVal getter1 As Expression(Of Func(Of TModel,TValue)), _
   ByVal action As Action(Of NotifyCollectionChangedEventArgs) _
) As IDisposable
public static IDisposable ListenCollection<TModel,TValue>( 
   TModel model,
   Expression<Func<TModel,TValue>> getter1,
   Action<NotifyCollectionChangedEventArgs> action
)
where TModel: class, INotifyPropertyChanged
where TValue: class, INotifyCollectionChanged

Parameters

model
getter1
action

Type Parameters

TModel
TValue
See Also

Reference

ActiveModelListenExtensions Class
ActiveModelListenExtensions Members
Overload List