TaskCompletionSource<TResult> Costruttori

Definizione

Overload

TaskCompletionSource<TResult>()

Crea un oggetto TaskCompletionSource<TResult>.

TaskCompletionSource<TResult>(Object)

Crea un oggetto TaskCompletionSource<TResult> con lo stato specificato.

TaskCompletionSource<TResult>(TaskCreationOptions)

Crea un oggetto TaskCompletionSource<TResult> con le opzioni specificate.

TaskCompletionSource<TResult>(Object, TaskCreationOptions)

Crea un oggetto TaskCompletionSource<TResult> con lo stato e le opzioni specificate.

TaskCompletionSource<TResult>()

Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs
public:
 TaskCompletionSource();
public TaskCompletionSource ();
Public Sub New ()

Vedi anche

Si applica a

TaskCompletionSource<TResult>(Object)

Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs

Crea un oggetto TaskCompletionSource<TResult> con lo stato specificato.

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

Parametri

state
Object

Stato da usare come AsyncState dell'oggetto Task<TResult> sottostante.

Vedi anche

Si applica a

TaskCompletionSource<TResult>(TaskCreationOptions)

Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs

Crea un oggetto TaskCompletionSource<TResult> con le opzioni specificate.

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)

Parametri

creationOptions
TaskCreationOptions

Opzioni da usare quando si crea l'oggetto Task<TResult> sottostante.

Eccezioni

creationOptions rappresenta le opzioni non valide per l'utilizzo con TaskCompletionSource<TResult>.

Commenti

L'oggetto Task<TResult> creato da questa istanza e accessibile tramite la relativa Task proprietà verrà creata un'istanza usando l'oggetto specificato creationOptions.

Vedi anche

Si applica a

TaskCompletionSource<TResult>(Object, TaskCreationOptions)

Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs
Origine:
TaskCompletionSource_T.cs

Crea un oggetto TaskCompletionSource<TResult> con lo stato e le opzioni specificate.

public:
 TaskCompletionSource(System::Object ^ state, System::Threading::Tasks::TaskCreationOptions creationOptions);
public TaskCompletionSource (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)

Parametri

state
Object

Stato da usare come AsyncState dell'oggetto Task<TResult> sottostante.

creationOptions
TaskCreationOptions

Opzioni da usare quando si crea l'oggetto Task<TResult> sottostante.

Eccezioni

creationOptions rappresenta le opzioni non valide per l'utilizzo con TaskCompletionSource<TResult>.

Vedi anche

Si applica a