Task.AsyncState Task.AsyncState Task.AsyncState Task.AsyncState Property

Definición

Obtiene el objeto de estado que se proporcionó al crearse el objeto Task, o null si no se proporcionó ningún objeto de estado.Gets the state object supplied when the Task was created, or null if none was supplied.

public:
 property System::Object ^ AsyncState { System::Object ^ get(); };
public object AsyncState { get; }
member this.AsyncState : obj
Public ReadOnly Property AsyncState As Object

Valor de propiedad

Un Object que representa los datos de estado que se pasaron a la tarea cuando se creó.An Object that represents the state data that was passed in to the task when it was created.

Implementaciones

Comentarios

Convertir el objeto al tipo original para recuperar sus datos.Cast the object back to the original type to retrieve its data.

Se aplica a