Udostępnij za pośrednictwem


ViewExecutor.ExecuteAsync Metoda

Definicja

Przeciążenia

ExecuteAsync(ViewContext, String, Nullable<Int32>)

Wykonuje widok asynchronicznie.

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

Wykonuje widok asynchronicznie.

ExecuteAsync(ViewContext, String, Nullable<Int32>)

Źródło:
ViewExecutor.cs
Źródło:
ViewExecutor.cs
Źródło:
ViewExecutor.cs

Wykonuje widok asynchronicznie.

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

Parametry

viewContext
ViewContext

Element ViewContext skojarzony z bieżącym żądaniem.

contentType
String

Wartość nagłówka typu zawartości do ustawienia w odpowiedzi. Jeśli nullzostanie użyta wartość , DefaultContentType zostanie użyta.

statusCode
Nullable<Int32>

Kod stanu HTTP do ustawienia w odpowiedzi. Może to być null.

Zwraca

Element Task , który zostanie ukończony po zakończeniu wykonywania widoku.

Dotyczy

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

Źródło:
ViewExecutor.cs
Źródło:
ViewExecutor.cs
Źródło:
ViewExecutor.cs

Wykonuje widok asynchronicznie.

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

Parametry

actionContext
ActionContext

Element ActionContext skojarzony z bieżącym żądaniem.

view
IView

Element IView.

contentType
String

Wartość nagłówka typu zawartości do ustawienia w odpowiedzi. Jeśli nullzostanie użyta wartość , DefaultContentType zostanie użyta.

statusCode
Nullable<Int32>

Kod stanu HTTP do ustawienia w odpowiedzi. Może to być null.

Zwraca

Element Task , który zostanie ukończony po zakończeniu wykonywania widoku.

Dotyczy