Runspace.ThreadOptions Property

Definition

This property determines whether a new thread is create for each invocation.

public:
 abstract property System::Management::Automation::Runspaces::PSThreadOptions ThreadOptions { System::Management::Automation::Runspaces::PSThreadOptions get(); void set(System::Management::Automation::Runspaces::PSThreadOptions value); };
public abstract System.Management.Automation.Runspaces.PSThreadOptions ThreadOptions { get; set; }
member this.ThreadOptions : System.Management.Automation.Runspaces.PSThreadOptions with get, set
Public MustOverride Property ThreadOptions As PSThreadOptions

Property Value

Exceptions

An attempt to change this property was made after opening the Runspace

The thread options cannot be changed to the requested value

Remarks

Any updates to the value of this property must be done before the Runspace is opened

Applies to