ObservableRecipient.OnDeactivated 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.
Raised whenever the IsActive property is set to false
.
Use this method to unregister from messages and do general cleanup for this instance.
protected virtual void OnDeactivated ();
abstract member OnDeactivated : unit -> unit
override this.OnDeactivated : unit -> unit
Protected Overridable Sub OnDeactivated ()
Remarks
The base implementation unregisters all messages for this recipient. It does so by invoking UnregisterAll(Object), which removes all registered handlers for a given subscriber, regardless of what token was used to register them. That is, all registered handlers across all subscription channels will be removed.