PSEventManager Methods

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

NameDescription
System_CAPS_protmethodCreateEvent(String, Object, Object[], PSObject)

When overridden in a derived class, creates a Windows PowerShell event.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGenerateEvent(String, Object, Object[], PSObject)

Raises an event in the current runspace. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGenerateEvent(String, Object, Object[], PSObject, Boolean, Boolean)

Generate a PowerShell event.

System_CAPS_pubmethodGetEventSubscribers(String)

When overridden in a derived class, retrieves the objects that catch an event when it is raised. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetNextEventId()

Generates a sequential event identifier.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodProcessNewEvent(PSEventArgs, Boolean)

When overridden in a derived class, processes new events that have either been generated by this instance or forwarded to it.

System_CAPS_protmethodProcessNewEvent(PSEventArgs, Boolean, Boolean)

Processes new events that have either been generated by this instance or forwarded to it. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodSubscribeEvent(Object, String, String, PSObject, PSEventReceivedEventHandler, Boolean, Boolean)

When overridden in a derived class, creates a subscriber to an event and specifies the event handler object. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSubscribeEvent(Object, String, String, PSObject, PSEventReceivedEventHandler, Boolean, Boolean, Int32)

When overridden in a derived class, creates a subscriber to an event, specifies the event handler object, and specifies the maximum number of times that the event can be triggered. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodSubscribeEvent(Object, String, String, PSObject, ScriptBlock, Boolean, Boolean)

When overridden in a derived class, creates a subscriber to an event and specifies the script block that is run when the event is triggered. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodSubscribeEvent(Object, String, String, PSObject, ScriptBlock, Boolean, Boolean, Int32)

When overridden in a derived class, creates a subscriber to an event, specifies the script block that is run when the event is triggered, and specifies the maximum number of times that the event can be triggered. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnsubscribeEvent(PSEventSubscriber)

When overridden in a derived class, removes a subscriber from the list of objects that subscribe to the event. This method is introduced in Windows PowerShell 2.0.

Return to top

Community Additions

ADD
Show: