Gets or sets the apartment state of the thread that will be used to set the task environment and execute the tasks. The default is to use STA (i.e. ApartmentState.STA).
Namespace: AGI.Parallel.Infrastructure
Assembly: AGI.Parallel.Infrastructure (in AGI.Parallel.Infrastructure.dll) Version: 1.2.0.275 (1.2.0.275)

Syntax

C#
public ApartmentState ThreadApartmentState { get; set; }
Visual Basic
Public Property ThreadApartmentState As ApartmentState
        Get
        Set

Field Value

The state of the thread apartment.

See Also