WeakEventManager.Item[Object] 屬性

定義

取得或設定要為指定的來源儲存的資料。

protected:
 property System::Object ^ default[System::Object ^] { System::Object ^ get(System::Object ^ source); void set(System::Object ^ source, System::Object ^ value); };
protected object this[object source] { get; set; }
member this.Item(obj) : obj with get, set
Default Protected Property Item(source As Object) As Object

參數

source
Object

所要求來源之以零為起始的索引。

屬性值

Object

管理員為此來源儲存的資料。

備註

衍生類別可以選擇要在此索引子中儲存哪些資料和類型。 一般而言,這會實作為 WeakEventManager.ListenerList ,這是接聽程式的弱式參考清單。 只有在類型無法包含必要資訊時 WeakEventManager.ListenerList ,您才需要變更此類型。 如果是,您必須覆寫 Purge 方法,以便正確執行基礎類型的所有清除。

適用於

另請參閱