Compartilhar via


PublicOrleansTaskExtensions.Box Método

Definição

Sobrecargas

Box(Task)

Retorna um Task<TResult> para o fornecido Task.

Box(Task<Object>)

Retorna um Task<TResult> para o fornecido Task<TResult>.

Box<T>(Task<T>)

Retorna um Task<TResult> para o fornecido Task<TResult>.

Box(Task)

Retorna um Task<TResult> para o fornecido Task.

public static System.Threading.Tasks.Task<object> Box (this System.Threading.Tasks.Task task);
static member Box : System.Threading.Tasks.Task -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function Box (task As Task) As Task(Of Object)

Parâmetros

task
Task

A tarefa.

Retornos

Aplica-se a

Box(Task<Object>)

Retorna um Task<TResult> para o fornecido Task<TResult>.

public static System.Threading.Tasks.Task<object> Box (this System.Threading.Tasks.Task<object> task);
static member Box : System.Threading.Tasks.Task<obj> -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function Box (task As Task(Of Object)) As Task(Of Object)

Parâmetros

task
Task<Object>

A tarefa.

Retornos

Aplica-se a

Box<T>(Task<T>)

Retorna um Task<TResult> para o fornecido Task<TResult>.

public static System.Threading.Tasks.Task<object> Box<T> (this System.Threading.Tasks.Task<T> task);
static member Box : System.Threading.Tasks.Task<'T> -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function Box(Of T) (task As Task(Of T)) As Task(Of Object)

Parâmetros de tipo

T

O tipo subjacente de task.

Parâmetros

task
Task<T>

A tarefa.

Retornos

Aplica-se a