共用方式為


TaskHost.ApartmentThreaded Property

Definition

Gets a value that indicates whether the task is an apartment-threaded object.

public:
 property bool ApartmentThreaded { bool get(); };
public bool ApartmentThreaded { get; }
member this.ApartmentThreaded : bool
Public ReadOnly Property ApartmentThreaded As Boolean

Property Value

true if the task is an apartment-threaded object; otherwise, false.

Applies to