Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Runspace.ThreadOptions Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Gets and sets information about how threads are created and used when a command is run within the runspace. This property must be set before the runspace is opened. This property is introduced in Windows PowerShell 2.0.

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

public abstract PSThreadOptions ThreadOptions { get; set; }

Property Value

Type: System.Management.Automation.Runspaces.PSThreadOptions

A PSThreadOptions constant that identifies how threads are created and used when a command is run within the runspace.

For more information about runspaces and runspace pools, see Host Application Runspaces.

System_CAPS_noteNote

The user at the command line may not necessarily realize that the commands that Windows PowerShell runs are being processed within a runspace. From the command-line user’s point of view, commands are run in a Windows PowerShell session. From a host application’s point of view, commands are run within a runspace.

Return to top

Community Additions

Show: