Compartir a través de


ViewExecutor.ExecuteAsync Método

Definición

Sobrecargas

ExecuteAsync(ViewContext, String, Nullable<Int32>)

Ejecuta una vista de forma asincrónica.

ExecuteAsync(ActionContext, IView, ViewDataDictionary, ITempDataDictionary, String, Nullable<Int32>)

Ejecuta una vista de forma asincrónica.

ExecuteAsync(ViewContext, String, Nullable<Int32>)

Source:
ViewExecutor.cs
Source:
ViewExecutor.cs
Source:
ViewExecutor.cs

Ejecuta una vista de forma asincrónica.

protected:
 System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::String ^ contentType, Nullable<int> statusCode);
protected System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string contentType, int? statusCode);
protected System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string? contentType, int? statusCode);
member this.ExecuteAsync : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * Nullable<int> -> System.Threading.Tasks.Task
Protected Function ExecuteAsync (viewContext As ViewContext, contentType As String, statusCode As Nullable(Of Integer)) As Task

Parámetros

viewContext
ViewContext

asociado ViewContext a la solicitud actual.

contentType
String

Valor del encabezado content-type que se va a establecer en la respuesta. Si nulles , DefaultContentType se usará.

statusCode
Nullable<Int32>

Código de estado HTTP que se va a establecer en la respuesta. Puede ser null.

Devoluciones

que Task se completará cuando se complete la ejecución de la vista.

Se aplica a

ExecuteAsync(ActionContext, IView, ViewDataDictionary, ITempDataDictionary, String, Nullable<Int32>)

Source:
ViewExecutor.cs
Source:
ViewExecutor.cs
Source:
ViewExecutor.cs

Ejecuta una vista de forma asincrónica.

public:
 virtual System::Threading::Tasks::Task ^ ExecuteAsync(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ViewEngines::IView ^ view, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ tempData, System::String ^ contentType, Nullable<int> statusCode);
public virtual System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData, string contentType, int? statusCode);
public virtual System.Threading.Tasks.Task ExecuteAsync (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData, string? contentType, int? statusCode);
abstract member ExecuteAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary * string * Nullable<int> -> System.Threading.Tasks.Task
override this.ExecuteAsync : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary * string * Nullable<int> -> System.Threading.Tasks.Task
Public Overridable Function ExecuteAsync (actionContext As ActionContext, view As IView, viewData As ViewDataDictionary, tempData As ITempDataDictionary, contentType As String, statusCode As Nullable(Of Integer)) As Task

Parámetros

actionContext
ActionContext

asociado ActionContext a la solicitud actual.

view
IView

IView.

contentType
String

Valor del encabezado content-type que se va a establecer en la respuesta. Si nulles , DefaultContentType se usará.

statusCode
Nullable<Int32>

Código de estado HTTP que se va a establecer en la respuesta. Puede ser null.

Devoluciones

que Task se completará cuando se complete la ejecución de la vista.

Se aplica a