Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSEventArgs Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides data for the eventing functionality provided by Windows PowerShell. This class can be used to subscribe to and receive events. 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::EventArgs
    System.Management.Automation::PSEventArgs

public ref class PSEventArgs : EventArgs

NameDescription
System_CAPS_pubpropertyComputerName

Gets the name of the computer where the event was raised. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyEventIdentifier

Gets the unique identifier of the raised event. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyMessageData

Gets any user data associated with the raised event. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyRunspaceId

Gets the global identifier for the event that is unique to the runspace where the event was raised. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySender

Gets the object (also referred to as the source) that raised the event. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySourceArgs

Gets any original arguments of the event that were captured and passed on by the source when the event was raised. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySourceEventArgs

Gets any arguments that were added by the source when the event was raised. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySourceIdentifier

Gets the identifier of the source that raised the event. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyTimeGenerated

Gets the date and time of when the event was raised. This property is introduced in 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.)

For more information about a raised event that was forwarded from a remote runspace, see ForwardedEventArgs.

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
Show: