RunspacePool.State Property

Gets the state of the runspace pool. For example, whether the pool is opened or closed.

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

Usage

Syntax

'Declaration
Public ReadOnly Property State As RunspacePoolState
public RunspacePoolState State { get; }
public:
property RunspacePoolState State {
    RunspacePoolState get ();
}
/** @property */
public RunspacePoolState get_State ()
public function get State () : RunspacePoolState

Property Value

A RunspacePoolState constant that identifies the current state of the pool.

Remarks

This property can be used to validate that the runspace pool is open before attempting to create a runspace from the pool.

Thread Safety

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

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP

See Also

Reference

RunspacePool Class
RunspacePool Members
System.Management.Automation.Runspaces Namespace
RunspacePoolState

Other Resources

Windows PowerShell SDK