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: System.Threading.ApartmentState
The apartment state.
Remarks
The default state is single-threaded apartment (STA).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.