PSInvocationSettings.ApartmentState Property

Definition

ApartmentState of the thread in which the command is executed.

C++
public:
 property System::Threading::ApartmentState ApartmentState { System::Threading::ApartmentState get(); void set(System::Threading::ApartmentState value); };

Property Value

Applies to

Product Versions
PowerShell SDK 7.2.0, 7.3.0, 7.4.0
Windows PowerShell 5.1.0.0