CanExecuteChangedEventManager.Purge(Object, Object, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes inactive listener entries from the data list for the provided source.
protected:
override bool Purge(System::Object ^ source, System::Object ^ data, bool purgeAll);
protected override bool Purge (object source, object data, bool purgeAll);
override this.Purge : obj * obj * bool -> bool
Protected Overrides Function Purge (source As Object, data As Object, purgeAll As Boolean) As Boolean
Parameters
- source
- Object
The source for events being listened to.
- data
- Object
The data to check. This object is expected to be a WeakEventManager.ListenerList implementation.
- purgeAll
- Boolean
true
to stop listening to source
, and completely remove all entries from data
.
Returns
true
if some entries were actually removed; otherwise, false
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.