Partager via


TestRunConfiguration.ApartmentState, propriété

Passe l'état de cloisonnement qui est actuellement défini pour cette configuration d'exécution.

Espace de noms :  Microsoft.VisualStudio.TestTools.Common
Assembly :  Microsoft.VisualStudio.QualityTools.Common (dans Microsoft.VisualStudio.QualityTools.Common.dll)

Syntaxe

'Déclaration
Public Property ApartmentState As ApartmentState
    Get
    Set
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)

Valeur de propriété

Type : System.Threading.ApartmentState
L'état de cloisonnement.

Notes

L'état par défaut est le thread cloisonné (STA, single-threaded apartment).

Sécurité .NET Framework

Voir aussi

Référence

TestRunConfiguration Classe

Microsoft.VisualStudio.TestTools.Common, espace de noms

ApartmentState