Editar

Compartilhar via


ObservableRecipient.OnDeactivated Method

Definition

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.

Applies to