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)

'Usage
Dim instance As PSCmdlet
Dim value As PSEventManager

value = instance.Events

public:
property PSEventManager^ Events {
	PSEventManager^ 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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft