WeakEventManager.StopListening(Object) Method
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)
- source
- Object
The source to stop listening on.
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
.
Produit | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :