Runspace.ApartmentState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ApartmentState of the thread used to execute commands within this Runspace.
public:
property System::Threading::ApartmentState ApartmentState { System::Threading::ApartmentState get(); void set(System::Threading::ApartmentState value); };
public System.Threading.ApartmentState ApartmentState { get; set; }
member this.ApartmentState : System.Threading.ApartmentState with get, set
Public Property ApartmentState As ApartmentState
Property Value
Exceptions
An attempt to change this property was made after opening the Runspace
Remarks
Any updates to the value of this property must be done before the Runspace is opened