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
public ApartmentState ApartmentState { get; set; }
public:
property ApartmentState ApartmentState {
    ApartmentState get ();
    void set (ApartmentState value);
}
member ApartmentState : ApartmentState with get, set
function get ApartmentState () : ApartmentState 
function set ApartmentState (value : ApartmentState)

Property Value

Type: ApartmentState
The apartment state.

Remarks

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

.NET Framework Security

See Also

Reference

TestRunConfiguration Class

Microsoft.VisualStudio.TestTools.Common Namespace

ApartmentState