共用方式為


CollectionViewSource.IWeakEventListener.ReceiveWeakEvent 方法

定義

從集中式事件管理員接收事件。

 virtual bool System.Windows.IWeakEventListener.ReceiveWeakEvent(Type ^ managerType, System::Object ^ sender, EventArgs ^ e) = System::Windows::IWeakEventListener::ReceiveWeakEvent;
bool IWeakEventListener.ReceiveWeakEvent (Type managerType, object sender, EventArgs e);
abstract member System.Windows.IWeakEventListener.ReceiveWeakEvent : Type * obj * EventArgs -> bool
override this.System.Windows.IWeakEventListener.ReceiveWeakEvent : Type * obj * EventArgs -> bool
Function ReceiveWeakEvent (managerType As Type, sender As Object, e As EventArgs) As Boolean Implements IWeakEventListener.ReceiveWeakEvent

參數

managerType
Type

呼叫這個方法的 WeakEventManager 型別。 這只會辨識屬於 DataChangedEventManager 型別的管理員物件。

sender
Object

發出事件的物件。

e
EventArgs

事件資料。

傳回

Boolean

如果由接聽程式處理事件,就是 true,否則就是 false

實作

適用於