ValueTask Construtores

Definição

Sobrecargas

ValueTask(Task)

Inicializa uma nova instância da classe ValueTask usando a tarefa fornecida que representa a operação.Initializes a new instance of the ValueTask class using the supplied task that represents the operation.

ValueTask(IValueTaskSource, Int16)

Inicializa uma nova instância da classe ValueTask usando o objeto fornecido IValueTaskSource que representa a operação.Initializes a new instance of the ValueTask class using the supplied IValueTaskSource object that represents the operation.

ValueTask(Task)

Inicializa uma nova instância da classe ValueTask usando a tarefa fornecida que representa a operação.Initializes a new instance of the ValueTask class using the supplied task that represents the operation.

public:
 ValueTask(System::Threading::Tasks::Task ^ task);
public ValueTask (System.Threading.Tasks.Task task);
new System.Threading.Tasks.ValueTask : System.Threading.Tasks.Task -> System.Threading.Tasks.ValueTask
Public Sub New (task As Task)

Parâmetros

task
Task

A tarefa que representa a operação.The task that represents the operation.

ValueTask(IValueTaskSource, Int16)

Inicializa uma nova instância da classe ValueTask usando o objeto fornecido IValueTaskSource que representa a operação.Initializes a new instance of the ValueTask class using the supplied IValueTaskSource object that represents the operation.

public:
 ValueTask(System::Threading::Tasks::Sources::IValueTaskSource ^ source, short token);
public ValueTask (System.Threading.Tasks.Sources.IValueTaskSource source, short token);
new System.Threading.Tasks.ValueTask : System.Threading.Tasks.Sources.IValueTaskSource * int16 -> System.Threading.Tasks.ValueTask
Public Sub New (source As IValueTaskSource, token As Short)

Parâmetros

source
IValueTaskSource

Um objeto que representa a operação.An object that represents the operation.

token
Int16

Um valor opaco que é passado para IValueTaskSourceAn opaque value that is passed through to the IValueTaskSource

Aplica-se a