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.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru