編輯

共用方式為


WeakEventManager.StopListening(Object) Method

Definition

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