ViewResult.ViewEngine 属性

定义

获取或设置 IViewEngine 用于查找视图的 。

public:
 property Microsoft::AspNetCore::Mvc::ViewEngines::IViewEngine ^ ViewEngine { Microsoft::AspNetCore::Mvc::ViewEngines::IViewEngine ^ get(); void set(Microsoft::AspNetCore::Mvc::ViewEngines::IViewEngine ^ value); };
public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get; set; }
public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine? ViewEngine { get; set; }
member this.ViewEngine : Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine with get, set
Public Property ViewEngine As IViewEngine

属性值

注解

如果null为 ,则使用 中的 ActionContext.HttpContext.RequestServices 实例ICompositeViewEngine

适用于