TestRunConfiguration.ApartmentState 属性

获取当前此运行配置设置的单元状态。

命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

语法

声明
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)

属性值

类型:System.Threading.ApartmentState
单元状态。

备注

默认状态为单线程单元 (STA)。

.NET Framework 安全性

请参见

参考

TestRunConfiguration 类

Microsoft.VisualStudio.TestTools.Common 命名空间

ApartmentState