WeakEventManager.StopListening(Object) 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.
When overridden in a derived class, stops listening on the provided source for the event being managed.
protected:
abstract void StopListening(System::Object ^ source);
protected abstract void StopListening (object source);
abstract member StopListening : obj -> unit
Protected MustOverride Sub StopListening (source As Object)
Parameters
- source
- Object
The source to stop listening on.
Notes to Implementers
StopListening(Object) implementations should remove the class handler as added by the StartListening(Object) method. Removing a listener should not clear the listener list. Instead, it should only disconnect the class handler (perhaps temporarily). Other methods are available for clearing the entire list, such as the Purge(Object, Object, Boolean) method with the purgeAll
parameter set to true
.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om