Export (0) Print
Expand All

PSCmdlet.Events Property

Gets the event manager for the current session where the cmdlet is running This property is introduced in Windows PowerShell 2.0.

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

Dim instance As PSCmdlet
Dim value As PSEventManager

value = instance.Events

public PSEventManager Events { get; }
/** @property */
public PSEventManager get_Events ()

public function get Events () : PSEventManager

Property Value

A PSEventManager object that handles the subscription to events for the session.

For more information about cmdlets, see Windows PowerShell Cmdlets.

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


Target Platforms

© 2015 Microsoft