TaskCompletionSource<TResult> TaskCompletionSource<TResult> TaskCompletionSource<TResult> TaskCompletionSource<TResult> Constructors

Definición

Sobrecargas

TaskCompletionSource<TResult>() TaskCompletionSource<TResult>() TaskCompletionSource<TResult>()

Crea una interfaz TaskCompletionSource<TResult>.Creates a TaskCompletionSource<TResult>.

TaskCompletionSource<TResult>(Object) TaskCompletionSource<TResult>(Object) TaskCompletionSource<TResult>(Object) TaskCompletionSource<TResult>(Object)

Crea un objeto TaskCompletionSource<TResult> con el estado especificado.Creates a TaskCompletionSource<TResult> with the specified state.

TaskCompletionSource<TResult>(TaskCreationOptions) TaskCompletionSource<TResult>(TaskCreationOptions) TaskCompletionSource<TResult>(TaskCreationOptions) TaskCompletionSource<TResult>(TaskCreationOptions)

Crea un objeto TaskCompletionSource<TResult> con las opciones especificadas.Creates a TaskCompletionSource<TResult> with the specified options.

TaskCompletionSource<TResult>(Object, TaskCreationOptions) TaskCompletionSource<TResult>(Object, TaskCreationOptions) TaskCompletionSource<TResult>(Object, TaskCreationOptions) TaskCompletionSource<TResult>(Object, TaskCreationOptions)

Crea un objeto TaskCompletionSource<TResult> con el estado y las opciones especificados.Creates a TaskCompletionSource<TResult> with the specified state and options.

TaskCompletionSource<TResult>() TaskCompletionSource<TResult>() TaskCompletionSource<TResult>()

TaskCompletionSource<TResult>(Object) TaskCompletionSource<TResult>(Object) TaskCompletionSource<TResult>(Object) TaskCompletionSource<TResult>(Object)

Crea un objeto TaskCompletionSource<TResult> con el estado especificado.Creates a TaskCompletionSource<TResult> with the specified state.

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

Parámetros

state
Object Object Object Object

Estado que se va a usar como AsyncState de la Task<TResult> subyacente.The state to use as the underlying Task<TResult>'s AsyncState.

Consulte también:

TaskCompletionSource<TResult>(TaskCreationOptions) TaskCompletionSource<TResult>(TaskCreationOptions) TaskCompletionSource<TResult>(TaskCreationOptions) TaskCompletionSource<TResult>(TaskCreationOptions)

Crea un objeto TaskCompletionSource<TResult> con las opciones especificadas.Creates a TaskCompletionSource<TResult> with the specified options.

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

Parámetros

creationOptions
TaskCreationOptions TaskCreationOptions TaskCreationOptions TaskCreationOptions

Opciones que se van a usar al crear la Task<TResult> subyacente.The options to use when creating the underlying Task<TResult>.

Excepciones

creationOptions representan las opciones no válidas para su uso con TaskCompletionSource<TResult>.The creationOptions represent options invalid for use with a TaskCompletionSource<TResult>.

Comentarios

El Task<TResult> creada por esta instancia y accesible a través de su Task se crearán instancias de propiedad usando el objeto creationOptions.The Task<TResult> created by this instance and accessible through its Task property will be instantiated using the specified creationOptions.

Consulte también:

TaskCompletionSource<TResult>(Object, TaskCreationOptions) TaskCompletionSource<TResult>(Object, TaskCreationOptions) TaskCompletionSource<TResult>(Object, TaskCreationOptions) TaskCompletionSource<TResult>(Object, TaskCreationOptions)

Crea un objeto TaskCompletionSource<TResult> con el estado y las opciones especificados.Creates a TaskCompletionSource<TResult> 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<'Result> : obj * System.Threading.Tasks.TaskCreationOptions -> System.Threading.Tasks.TaskCompletionSource<'Result>
Public Sub New (state As Object, creationOptions As TaskCreationOptions)

Parámetros

state
Object Object Object Object

Estado que se va a usar como AsyncState de la Task<TResult> subyacente.The state to use as the underlying Task<TResult>'s AsyncState.

creationOptions
TaskCreationOptions TaskCreationOptions TaskCreationOptions TaskCreationOptions

Opciones que se van a usar al crear la Task<TResult> subyacente.The options to use when creating the underlying Task<TResult>.

Excepciones

creationOptions representan las opciones no válidas para su uso con TaskCompletionSource<TResult>.The creationOptions represent options invalid for use with a TaskCompletionSource<TResult>.

Consulte también:

Se aplica a