PSEventHandler Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Serves as a base class for deriving an event handler for PSEvent objects. These objects represent events that are generated by Windows PowerShell. This class is introduced in Windows PowerShell 2.0.

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

System::Object
  System.Management.Automation::PSEventHandler

public ref class PSEventHandler 

NameDescription
System_CAPS_pubmethodPSEventHandler()

Creates a new instance of the PSEventHandler class. This constructor is introduced by Windows PowerShell 2.0.

System_CAPS_pubmethodPSEventHandler(PSEventManager^, Object^, String^, PSObject^)

Creates a new instance of the PSEventHandler class, and defines the event manager to use, the object that sent the event, the identifier of the event, and additional data associated with the event. This constructor is introduced by Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_protfieldeventManager

The event manager to which the events are forwarded. This field is introduced in Windows PowerShell 2.0.

System_CAPS_protfieldextraData

Additional data added to the event. This field is introduced in Windows PowerShell 2.0.

System_CAPS_protfieldsender

The object that raised the event. This field is introduced in Windows PowerShell 2.0.

System_CAPS_protfieldsourceIdentifier

The identifier of the event. This field is introduced in Windows PowerShell 2.0.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: