TaskFactory<TResult>.CreationOptions 屬性

定義

取得這個工作 Factory 的 TaskCreationOptions 列舉值。Gets the TaskCreationOptions enumeration value for this task factory.

public:
 property System::Threading::Tasks::TaskCreationOptions CreationOptions { System::Threading::Tasks::TaskCreationOptions get(); };
public System.Threading.Tasks.TaskCreationOptions CreationOptions { get; }
member this.CreationOptions : System.Threading.Tasks.TaskCreationOptions
Public ReadOnly Property CreationOptions As TaskCreationOptions

屬性值

其中一個列舉值,這個值會指定這個工作 Factory 的預設建立選項。One of the enumeration values that specifies the default creation options for this task factory.

備註

這個屬性會傳回這個 factory 的預設建立選項。This property returns the default creation options for this factory. 除非在此處理站的方法呼叫期間明確指定其他選項,否則會用來建立所有工作。They will be used to create all tasks unless other options are explicitly specified during calls to this factory's methods.

適用於

另請參閱