Partager via


PSEventManager.UnsubscribeEvent(PSEventSubscriber) Method

Definition

Unsubscribes from an event on an object.

public:
 abstract void UnsubscribeEvent(System::Management::Automation::PSEventSubscriber ^ subscriber);
public abstract void UnsubscribeEvent (System.Management.Automation.PSEventSubscriber subscriber);
abstract member UnsubscribeEvent : System.Management.Automation.PSEventSubscriber -> unit
Public MustOverride Sub UnsubscribeEvent (subscriber As PSEventSubscriber)

Parameters

subscriber
PSEventSubscriber

The subscriber associated with the event subscription

Applies to