ViewExecutor.ExecuteAsync Methode

Definition

Überlädt

ExecuteAsync(ViewContext, String, Nullable<Int32>)

Führt eine Ansicht asynchron aus.

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

Führt eine Ansicht asynchron aus.

ExecuteAsync(ViewContext, String, Nullable<Int32>)

Quelle:
ViewExecutor.cs
Quelle:
ViewExecutor.cs
Quelle:
ViewExecutor.cs

Führt eine Ansicht asynchron aus.

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

Parameter

viewContext
ViewContext

Die ViewContext der aktuellen Anforderung zugeordnete.

contentType
String

Der inhaltstypbezogene Headerwert, der in der Antwort festgelegt werden soll. Wenn null, DefaultContentType wird verwendet.

statusCode
Nullable<Int32>

Der HTTP-status Code, der in der Antwort festgelegt werden soll. Kann null sein.

Gibt zurück

Eine Task , die abgeschlossen wird, wenn die Ansichtsausführung abgeschlossen ist.

Gilt für:

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

Quelle:
ViewExecutor.cs
Quelle:
ViewExecutor.cs
Quelle:
ViewExecutor.cs

Führt eine Ansicht asynchron aus.

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

Parameter

actionContext
ActionContext

Die ActionContext der aktuellen Anforderung zugeordnete.

view
IView

Die IView.

contentType
String

Der inhaltstypbezogene Headerwert, der in der Antwort festgelegt werden soll. Wenn null, DefaultContentType wird verwendet.

statusCode
Nullable<Int32>

Der HTTP-status Code, der in der Antwort festgelegt werden soll. Kann null sein.

Gibt zurück

Eine Task , die abgeschlossen wird, wenn die Ansichtsausführung abgeschlossen ist.

Gilt für: