TaskFactory<TResult>.Scheduler 屬性

定義

取得這個工作 Factory 的工作排程器。Gets the task scheduler for this task factory.

public:
 property System::Threading::Tasks::TaskScheduler ^ Scheduler { System::Threading::Tasks::TaskScheduler ^ get(); };
public System.Threading.Tasks.TaskScheduler Scheduler { get; }
member this.Scheduler : System.Threading.Tasks.TaskScheduler
Public ReadOnly Property Scheduler As TaskScheduler

屬性值

這個工作 Factory 的工作排程器。The task scheduler for this task factory.

備註

這個屬性會傳回這個 factory 的預設排程器。This property returns the default scheduler for this factory. 除非在呼叫此處理站的方法期間明確指定另一個排程器,否則會用來排定所有工作。It will be used to schedule all tasks unless another scheduler is explicitly specified during calls to this factory's methods.

如果此屬性傳回 null,將會使用 CurrentIf this property returns null, Current will be used.

適用於

另請參閱