WeakEventManager.ListenerList.IsEmpty 屬性

定義

取得值,宣告這個 WeakEventManager.ListenerList 是否為空白。

public:
 property bool IsEmpty { bool get(); };
public bool IsEmpty { get; }
member this.IsEmpty : bool
Public ReadOnly Property IsEmpty As Boolean

屬性值

如果該清單為空則為 true,否則為 false

備註

這個方法相當於檢查 是否 Count 為零,而且不會檢查清單中是否有任何參考現在過時。 如果您想要確保所有參考仍然有效,請在檢查清單的空白狀態之前呼叫 Purge

適用於