Runspace.AvailabilityChanged Event

Occurs when the availability of the runspace changes, such as when the runspace becomes available and when it is busy. This event is introduced in Windows PowerShell 2.0.


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

'Usage
Dim instance As Runspace
Dim handler As EventHandler(Of RunspaceAvailabilityEventArgs)

AddHandler instance.AvailabilityChanged, handler

public abstract event EventHandler<RunspaceAvailabilityEventArgs> AvailabilityChanged
/** @event */
public abstract void add_AvailabilityChanged (EventHandler<RunspaceAvailabilityEventArgs> value)

/** @event */
public abstract void remove_AvailabilityChanged (EventHandler<RunspaceAvailabilityEventArgs> value)

For more information about the different availability states of the runspace, see the RunspaceAvailability enumeration.


 

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Server 2008, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional, Windows Vista, Windows Server 2003 R2, Windows XP, Windows 7, Windows 2008 R2, Windows Developer Preview, Windows Server Developer Preview

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