TaskHost.ApartmentThreaded 属性

定义

获取一个值,该值指示任务是否为单元线程对象。

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

属性值

如果任务是单元线程对象,则为 true;否则为 false。

适用于