ViewComponentResult.ViewEngine 属性

定义

注意

This property is unused and will be removed in the next major version.

此属性未使用,将在下一个主要版本中删除。

获取或设置 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; }
[System.Obsolete("This property is unused and will be removed in the next major version.")]
public Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine ViewEngine { get; set; }
member this.ViewEngine : Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine with get, set
[<System.Obsolete("This property is unused and will be removed in the next major version.")>]
member this.ViewEngine : Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine with get, set
Public Property ViewEngine As IViewEngine

属性值

属性

注解

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

适用于