Share via


TestRunConfiguration.ApartmentState Property

Gets the apartment state that is currently set for this run configuration.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Public Property ApartmentState As ApartmentState
'Usage
Dim instance As TestRunConfiguration 
Dim value As ApartmentState 

value = instance.ApartmentState

instance.ApartmentState = value
public ApartmentState ApartmentState { get; set; }
public:
property ApartmentState ApartmentState {
    ApartmentState get ();
    void set (ApartmentState value);
}
public function get ApartmentState () : ApartmentState 
public function set ApartmentState (value : ApartmentState)

Property Value

Type: System.Threading.ApartmentState
The apartment state.

Remarks

The default state is single-threaded apartment (STA).

.NET Framework Security

See Also

Reference

TestRunConfiguration Class

TestRunConfiguration Members

Microsoft.VisualStudio.TestTools.Common Namespace

ApartmentState