TaskFactory 생성자

정의

TaskFactory 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the TaskFactory class.

오버로드

TaskFactory()

기본 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the default configuration.

TaskFactory(CancellationToken)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

TaskFactory(TaskScheduler)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

TaskFactory(TaskCreationOptions, TaskContinuationOptions)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

TaskFactory(CancellationToken, TaskCreationOptions, TaskContinuationOptions, TaskScheduler)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

TaskFactory()

기본 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the default configuration.

public:
 TaskFactory();
public TaskFactory ();
Public Sub New ()

설명

이 생성자는 기본 구성을 사용 하 여 TaskFactory 인스턴스를 만듭니다.This constructor creates a TaskFactory instance with a default configuration. TaskCreationOptions 속성은 None으로 초기화 되 고, TaskContinuationOptions 속성이 None로 초기화 되며, TaskScheduler 속성이 현재 스케줄러로 초기화 됩니다 (Current참조).The TaskCreationOptions property is initialized to None, the TaskContinuationOptions property is initialized to None, and the TaskScheduler property is initialized to the current scheduler (see Current).

추가 정보

TaskFactory(CancellationToken)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

public:
 TaskFactory(System::Threading::CancellationToken cancellationToken);
public TaskFactory (System.Threading.CancellationToken cancellationToken);
new System.Threading.Tasks.TaskFactory : System.Threading.CancellationToken -> System.Threading.Tasks.TaskFactory

매개 변수

cancellationToken
CancellationToken

팩터리 메서드를 호출할 때 다른 CancellationToken을 명시적으로 지정하지 않는 경우 이 CancellationToken에서 만든 작업에 할당할 TaskFactory입니다.The CancellationToken that will be assigned to tasks created by this TaskFactory unless another CancellationToken is explicitly specified while calling the factory methods.

설명

이 생성자는 기본 구성을 사용 하 여 TaskFactory 인스턴스를 만듭니다.This constructor creates a TaskFactory instance with a default configuration. TaskCreationOptions 속성은 None으로 초기화 되 고, TaskContinuationOptions 속성이 None로 초기화 되며, TaskScheduler 속성이 현재 스케줄러로 초기화 됩니다 (Current참조).The TaskCreationOptions property is initialized to None, the TaskContinuationOptions property is initialized to None, and the TaskScheduler property is initialized to the current scheduler (see Current).

추가 정보

TaskFactory(TaskScheduler)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

public:
 TaskFactory(System::Threading::Tasks::TaskScheduler ^ scheduler);
public TaskFactory (System.Threading.Tasks.TaskScheduler scheduler);
new System.Threading.Tasks.TaskFactory : System.Threading.Tasks.TaskScheduler -> System.Threading.Tasks.TaskFactory
Public Sub New (scheduler As TaskScheduler)

매개 변수

scheduler
TaskScheduler

이 TaskFactory를 사용하여 만든 작업을 예약하는 데 사용할 TaskScheduler입니다.The TaskScheduler to use to schedule any tasks created with this TaskFactory. null 값은 현재 TaskScheduler를 사용함을 나타냅니다.A null value indicates that the current TaskScheduler should be used.

설명

이 생성자를 사용 하면 TaskCreationOptions 속성이 None로 초기화 되 고, TaskContinuationOptions 속성이 None로 초기화 되며, TaskScheduler 속성이 null이 아닌 한 scheduler로 초기화 되 고,이 경우에는 속성이 현재 스케줄러로 초기화 됩니다 (Current참조).With this constructor, the TaskCreationOptions property is initialized to None, the TaskContinuationOptions property is initialized to None, and the TaskScheduler property is initialized to scheduler, unless it's null, in which case the property is initialized to the current scheduler (see Current).

추가 정보

TaskFactory(TaskCreationOptions, TaskContinuationOptions)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

public:
 TaskFactory(System::Threading::Tasks::TaskCreationOptions creationOptions, System::Threading::Tasks::TaskContinuationOptions continuationOptions);
public TaskFactory (System.Threading.Tasks.TaskCreationOptions creationOptions, System.Threading.Tasks.TaskContinuationOptions continuationOptions);
new System.Threading.Tasks.TaskFactory : System.Threading.Tasks.TaskCreationOptions * System.Threading.Tasks.TaskContinuationOptions -> System.Threading.Tasks.TaskFactory
Public Sub New (creationOptions As TaskCreationOptions, continuationOptions As TaskContinuationOptions)

매개 변수

creationOptions
TaskCreationOptions

이 TaskFactory를 사용하여 작업을 만들 때 사용할 기본 TaskCreationOptions입니다.The default TaskCreationOptions to use when creating tasks with this TaskFactory.

continuationOptions
TaskContinuationOptions

이 TaskFactory를 사용하여 연속 작업을 만들 때 사용할 기본 TaskContinuationOptions입니다.The default TaskContinuationOptions to use when creating continuation tasks with this TaskFactory.

예외

creationOptions 인수에서 잘못된 TaskCreationOptions 값을 지정합니다.The creationOptions argument specifies an invalid TaskCreationOptions value. 자세한 내용은 FromAsync(Func<AsyncCallback,Object,IAsyncResult>, Action<IAsyncResult>, Object, TaskCreationOptions)에 대한 설명을 참조하세요.For more information, see the Remarks for FromAsync(Func<AsyncCallback,Object,IAsyncResult>, Action<IAsyncResult>, Object, TaskCreationOptions).

-또는--or- continuationOptions 인수에서 잘못된 값을 지정합니다.The continuationOptions argument specifies an invalid value.

설명

이 생성자를 사용 하면 TaskCreationOptions 속성이 creationOptions로 초기화 되 고, TaskContinuationOptions 속성이 continuationOptions로 초기화 되며, TaskScheduler 속성이 현재 스케줄러로 초기화 됩니다 (Current참조).With this constructor, the TaskCreationOptions property is initialized to creationOptions, the TaskContinuationOptions property is initialized to continuationOptions, and the TaskScheduler property is initialized to the current scheduler (see Current).

추가 정보

TaskFactory(CancellationToken, TaskCreationOptions, TaskContinuationOptions, TaskScheduler)

지정된 구성을 사용하여 TaskFactory 인스턴스를 초기화합니다.Initializes a TaskFactory instance with the specified configuration.

public:
 TaskFactory(System::Threading::CancellationToken cancellationToken, System::Threading::Tasks::TaskCreationOptions creationOptions, System::Threading::Tasks::TaskContinuationOptions continuationOptions, System::Threading::Tasks::TaskScheduler ^ scheduler);
public TaskFactory (System.Threading.CancellationToken cancellationToken, System.Threading.Tasks.TaskCreationOptions creationOptions, System.Threading.Tasks.TaskContinuationOptions continuationOptions, System.Threading.Tasks.TaskScheduler scheduler);
new System.Threading.Tasks.TaskFactory : System.Threading.CancellationToken * System.Threading.Tasks.TaskCreationOptions * System.Threading.Tasks.TaskContinuationOptions * System.Threading.Tasks.TaskScheduler -> System.Threading.Tasks.TaskFactory

매개 변수

cancellationToken
CancellationToken

팩터리 메서드를 호출할 때 다른 CancellationToken을 명시적으로 지정하지 않는 경우 이 CancellationToken에서 만든 작업에 할당할 기본 TaskFactory입니다.The default CancellationToken that will be assigned to tasks created by this TaskFactory unless another CancellationToken is explicitly specified while calling the factory methods.

creationOptions
TaskCreationOptions

이 TaskFactory를 사용하여 작업을 만들 때 사용할 기본 TaskCreationOptions입니다.The default TaskCreationOptions to use when creating tasks with this TaskFactory.

continuationOptions
TaskContinuationOptions

이 TaskFactory를 사용하여 연속 작업을 만들 때 사용할 기본 TaskContinuationOptions입니다.The default TaskContinuationOptions to use when creating continuation tasks with this TaskFactory.

scheduler
TaskScheduler

이 TaskFactory를 사용하여 만든 작업을 예약하는 데 사용할 기본 TaskScheduler입니다.The default TaskScheduler to use to schedule any Tasks created with this TaskFactory. null 값은 TaskScheduler.Current를 사용함을 나타냅니다.A null value indicates that TaskScheduler.Current should be used.

예외

creationOptions 인수에서 잘못된 TaskCreationOptions 값을 지정합니다.The creationOptions argument specifies an invalid TaskCreationOptions value. 자세한 내용은 FromAsync(Func<AsyncCallback,Object,IAsyncResult>, Action<IAsyncResult>, Object, TaskCreationOptions)에 대한 설명을 참조하세요.For more information, see the Remarks for FromAsync(Func<AsyncCallback,Object,IAsyncResult>, Action<IAsyncResult>, Object, TaskCreationOptions).

-또는--or- continuationOptions 인수에서 잘못된 값을 지정합니다.The continuationOptions argument specifies an invalid value.

설명

이 생성자를 사용 하면 TaskCreationOptions 속성이 creationOptions로 초기화 되 고, TaskContinuationOptions 속성이 continuationOptions로 초기화 되며, TaskScheduler 속성이 null이 아닌 한 scheduler로 초기화 되 고,이 경우에는 속성이 현재 스케줄러로 초기화 됩니다 (Current참조).With this constructor, the TaskCreationOptions property is initialized to creationOptions, the TaskContinuationOptions property is initialized to continuationOptions, and the TaskScheduler property is initialized to scheduler, unless it's null, in which case the property is initialized to the current scheduler (see Current).

추가 정보

적용 대상