다음을 통해 공유


TaskCompletionSource 생성자

정의

오버로드

TaskCompletionSource()

TaskCompletionSource만듭니다.

TaskCompletionSource(Object)

지정된 상태를 사용하여 TaskCompletionSource 만듭니다.

TaskCompletionSource(TaskCreationOptions)

지정된 옵션을 사용하여 TaskCompletionSource 만듭니다.

TaskCompletionSource(Object, TaskCreationOptions)

지정된 상태 및 옵션을 사용하여 TaskCompletionSource 만듭니다.

TaskCompletionSource()

Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs

TaskCompletionSource만듭니다.

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

적용 대상

TaskCompletionSource(Object)

Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs

지정된 상태를 사용하여 TaskCompletionSource 만듭니다.

public:
 TaskCompletionSource(System::Object ^ state);
public TaskCompletionSource (object? state);
new System.Threading.Tasks.TaskCompletionSource : obj -> System.Threading.Tasks.TaskCompletionSource
Public Sub New (state As Object)

매개 변수

state
Object

기본 Task사용할 상태는 AsyncState.

적용 대상

TaskCompletionSource(TaskCreationOptions)

Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs

지정된 옵션을 사용하여 TaskCompletionSource 만듭니다.

public:
 TaskCompletionSource(System::Threading::Tasks::TaskCreationOptions creationOptions);
public TaskCompletionSource (System.Threading.Tasks.TaskCreationOptions creationOptions);
new System.Threading.Tasks.TaskCompletionSource : System.Threading.Tasks.TaskCreationOptions -> System.Threading.Tasks.TaskCompletionSource
Public Sub New (creationOptions As TaskCreationOptions)

매개 변수

creationOptions
TaskCreationOptions

기본 Task만들 때 사용할 옵션입니다.

예외

지정된 creationOptions 중 하나 이상이 TaskCompletionSource사용할 수 없습니다.

설명

이 인스턴스에서 만들고 해당 Task 속성을 통해 액세스할 수 있는 Task 지정된 creationOptions사용하여 인스턴스화됩니다.

적용 대상

TaskCompletionSource(Object, TaskCreationOptions)

Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs
Source:
TaskCompletionSource.cs

지정된 상태 및 옵션을 사용하여 TaskCompletionSource 만듭니다.

public:
 TaskCompletionSource(System::Object ^ state, System::Threading::Tasks::TaskCreationOptions creationOptions);
public TaskCompletionSource (object? state, System.Threading.Tasks.TaskCreationOptions creationOptions);
new System.Threading.Tasks.TaskCompletionSource : obj * System.Threading.Tasks.TaskCreationOptions -> System.Threading.Tasks.TaskCompletionSource
Public Sub New (state As Object, creationOptions As TaskCreationOptions)

매개 변수

state
Object

기본 Task사용할 상태는 AsyncState.

creationOptions
TaskCreationOptions

기본 Task만들 때 사용할 옵션입니다.

예외

지정된 creationOptions 중 하나 이상이 TaskCompletionSource사용할 수 없습니다.

적용 대상