CompositeViewEngine Class¶
- Namespace
Microsoft.AspNetCore.Mvc.ViewEngines
- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public class CompositeViewEngine : ICompositeViewEngine, IViewEngine
-
class
Microsoft.AspNetCore.Mvc.ViewEngines.
CompositeViewEngine
Constructors¶
-
CompositeViewEngine
(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions>)¶ Initializes a new instance of
Microsoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine
.Arguments: optionsAccessor (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcViewOptions>) – The options accessor for Microsoft.AspNetCore.Mvc.MvcViewOptions
.public CompositeViewEngine(IOptions<MvcViewOptions> optionsAccessor)
-
Methods¶
-
FindView
(Microsoft.AspNetCore.Mvc.ActionContext, System.String, System.Boolean)¶ Return type: Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult public ViewEngineResult FindView(ActionContext context, string viewName, bool isMainPage)
-
GetView
(System.String, System.String, System.Boolean)¶ Return type: Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult public ViewEngineResult GetView(string executingFilePath, string viewPath, bool isMainPage)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ViewEngines.CompositeViewEngine.
ViewEngines
¶ Return type: System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine> public IReadOnlyList<IViewEngine> ViewEngines { get; }
-