共用方式為


CompositeCollection.ReceiveWeakEvent(Type, Object, EventArgs) 方法

定義

從集中式事件資料表處理事件。

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

參數

managerType
Type

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

sender
Object

發出事件的物件。

e
EventArgs

事件資料。

傳回

Boolean

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

適用於

另請參閱