PSEventSubscriber Members

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.

The following tables list the members exposed by the PSEventSubscriber type.

  Name Description
public property Action Gets the action that is taken when the event is received. This property is introduced in Windows PowerShell 2.0.
public property EventName Gets the name of the event monitored by this subscriber. This property is introduced in Windows PowerShell 2.0.
public property ForwardEvent 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.
public property HandlerDelegate Gets the handler method of the PSEventReceived event that is used by this subscriber. This property is introduced in Windows PowerShell 2.0.
public property SourceIdentifier Gets a user-specified unique identifier for the event subscription. This property is introduced in Windows PowerShell 2.0.
public property SourceObject Gets the object that raised the event. This property is introduced in Windows PowerShell 2.0.
public property SubscriptionId Gets the identifier for this subscription. This property is introduced in Windows PowerShell 2.0.
public property SupportEvent Gets a value that indicates whether the event is supported by another event. This property is introduced in Windows PowerShell 2.0.
Top

(see also Protected Methods)
 NameDescription
public methodEqualsDetermines whether the current PSEventSubscriber object is equal to the specified PSEventSubscriber object. This method is introduced in Windows PowerShell 2.0.
public methodEquals  (Inherited from Object)
public methodGetHashCodeOverridden. Retrieves a hash code based on the current PSEventSubscriber object. This method is introduced in Windows PowerShell 2.0.
public methodGetType  (Inherited from Object)
public methodToString  (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

  Name Description
public event Unsubscribed Occurs when this event subscriber is unregistered. Introduced in Windows PowerShell 3.0.
Top


Show: