TaskCompletionSource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TaskCompletionSource() |
Creates a TaskCompletionSource. |
TaskCompletionSource(Object) |
Creates a TaskCompletionSource with the specified state. |
TaskCompletionSource(TaskCreationOptions) |
Creates a TaskCompletionSource with the specified options. |
TaskCompletionSource(Object, TaskCreationOptions) |
Creates a TaskCompletionSource with the specified state and options. |
TaskCompletionSource()
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
Creates a TaskCompletionSource.
public:
TaskCompletionSource();
public TaskCompletionSource ();
Public Sub New ()
Applies to
TaskCompletionSource(Object)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
Creates a TaskCompletionSource with the specified state.
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)
Parameters
Applies to
TaskCompletionSource(TaskCreationOptions)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
Creates a TaskCompletionSource with the specified options.
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)
Parameters
- creationOptions
- TaskCreationOptions
The options to use when creating the underlying Task.
Exceptions
One or more of the specified creationOptions
are invalid for use with a TaskCompletionSource.
Remarks
The Task created by this instance and accessible through its Task property will be instantiated using the specified creationOptions
.
Applies to
TaskCompletionSource(Object, TaskCreationOptions)
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
- Source:
- TaskCompletionSource.cs
Creates a TaskCompletionSource with the specified state and options.
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)
Parameters
- creationOptions
- TaskCreationOptions
The options to use when creating the underlying Task.
Exceptions
One or more of the specified creationOptions
are invalid for use with a TaskCompletionSource.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기