ViewResultExecutor 类

定义

查找并执行 IViewViewResult

public ref class ViewResultExecutor : Microsoft::AspNetCore::Mvc::ViewFeatures::ViewExecutor, Microsoft::AspNetCore::Mvc::Infrastructure::IActionResultExecutor<Microsoft::AspNetCore::Mvc::ViewResult ^>
public class ViewResultExecutor : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewExecutor, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor<Microsoft.AspNetCore.Mvc.ViewResult>
type ViewResultExecutor = class
    inherit ViewExecutor
    interface IActionResultExecutor<ViewResult>
Public Class ViewResultExecutor
Inherits ViewExecutor
Implements IActionResultExecutor(Of ViewResult)
继承
ViewResultExecutor
实现

构造函数

ViewResultExecutor(IOptions<MvcViewOptions>, IHttpResponseStreamWriterFactory, ICompositeViewEngine, ITempDataDictionaryFactory, DiagnosticListener, ILoggerFactory, IModelMetadataProvider)

创建一个新的 ViewResultExecutor

ViewResultExecutor(IOptions<MvcViewOptions>, IHttpResponseStreamWriterFactory, ICompositeViewEngine, ITempDataDictionaryFactory, DiagnosticSource, ILoggerFactory, IModelMetadataProvider)

创建一个新的 ViewResultExecutor

属性

DiagnosticListener

获取 DiagnosticListener

(继承自 ViewExecutor)
DiagnosticSource

获取 DiagnosticSource

(继承自 ViewExecutor)
Logger

获取 ILogger

ModelMetadataProvider

获取 IModelMetadataProvider

(继承自 ViewExecutor)
TempDataFactory

获取 ITempDataDictionaryFactory

(继承自 ViewExecutor)
ViewEngine

获取默认的 IViewEngine

(继承自 ViewExecutor)
ViewOptions

获取 MvcViewOptions

(继承自 ViewExecutor)
WriterFactory

获取 IHttpResponseStreamWriterFactory

(继承自 ViewExecutor)

方法

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

异步执行视图。

(继承自 ViewExecutor)
ExecuteAsync(ActionContext, ViewResult)

通过修改 HttpResponse异步执行操作结果。

ExecuteAsync(ViewContext, String, Nullable<Int32>)

异步执行视图。

(继承自 ViewExecutor)
FindView(ActionContext, ViewResult)

尝试查找 IViewviewResult关联的 。

适用于