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.

PSEventSubscriber Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Represents a subscriber to those events that are generated by Windows PowerShell. This object is returned by the Get-EventSubscriber cmdlet. 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.PSEventSubscriber

Public Class PSEventSubscriber
	Implements IEquatable(Of PSEventSubscriber)

NameDescription
System_CAPS_pubpropertyAction

Gets the action that is taken when the event is received. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyEventName

Gets the name of the event monitored by this subscriber. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyForwardEvent

Gets a value that indicates whether event arrivals are forwarded to the parent runspace that opened this runspace. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyHandlerDelegate

Gets the handler method of the PSEventReceived event that is used by this subscriber. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySourceIdentifier

Gets a user-specified unique identifier for the event subscription. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySourceObject

Gets the object that raised the event. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySubscriptionId

Gets the identifier for this subscription. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertySupportEvent

Gets a value that indicates whether the event is supported by another event. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodEquals(PSEventSubscriber)

Determines whether the current PSEventSubscriber object is equal to the specified PSEventSubscriber object. This method is introduced in Windows PowerShell 2.0.

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Retrieves a hash code based on the current PSEventSubscriber object. This method is introduced in Windows PowerShell 2.0.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventUnsubscribed

Occurs when this event subscriber is unregistered. Introduced in Windows PowerShell 3.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
Show: