特定のCollectionChangedイベントに対して特定のアクションを実行します。
シンタックス
'宣言
Public Overloads Shared Function ListenCollection
(Of As {Class, INotifyPropertyChanged},
As {Class, INotifyPropertyChanged},
As {Class, INotifyCollectionChanged})( _
ByVal As , _
ByVal As Expression(Of Func(Of TModel1,TModel2)), _
ByVal As Expression(Of Func(Of TModel2,TValue)), _
ByVal As Action(Of NotifyCollectionChangedEventArgs) _
) As IDisposable
public static IDisposable ListenCollection<,,>(
,
Expression<Func<TModel1,TModel2>> ,
Expression<Func<TModel2,TValue>> ,
Action<NotifyCollectionChangedEventArgs>
)
where TModel1: class, INotifyPropertyChanged
where TModel2: class, INotifyPropertyChanged
where TValue: class, INotifyCollectionChanged
パラメータ
- model
- getter1
- getter2
- action
型パラメータ
- TModel1
- TModel2
- TValue
参照