CompositeViewEngine Class¶
Constructors¶
-
CompositeViewEngine
(IOptions<Microsoft.AspNet.Mvc.MvcViewOptions>, Microsoft.AspNet.Mvc.ITypeActivatorCache, System.IServiceProvider)¶ Initializes a new instance of [Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine](Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine.yml).
Arguments: - optionsAccessor (IOptions{Microsoft.AspNet.Mvc.MvcViewOptions}) – The options accessor for [Microsoft.AspNet.Mvc.MvcOptions]().
- typeActivatorCache (Microsoft.AspNet.Mvc.ITypeActivatorCache) – As [Microsoft.AspNet.Mvc.ITypeActivatorCache]() instance that creates an instance of type [Microsoft.AspNet.Mvc.Rendering.IViewEngine](Microsoft.AspNet.Mvc.Rendering.IViewEngine.yml).
- serviceProvider (System.IServiceProvider) – A [System.IServiceProvider]() instance that retrieves services from the service collection.
public CompositeViewEngine(IOptions<MvcViewOptions> optionsAccessor, ITypeActivatorCache typeActivatorCache, IServiceProvider serviceProvider)
-
Properties¶
-
ViewEngines
()¶ Gets the list of [Microsoft.AspNet.Mvc.Rendering.IViewEngine](Microsoft.AspNet.Mvc.Rendering.IViewEngine.yml) this instance of [Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine](Microsoft.AspNet.Mvc.Rendering.CompositeViewEngine.yml) delegates to.
Return type: System.Collections.Generic.IReadOnlyList{Microsoft.AspNet.Mvc.Rendering.IViewEngine} public IReadOnlyList<IViewEngine> ViewEngines { get; }
-
Methods¶
-
FindPartialView
(Microsoft.AspNet.Mvc.ActionContext, System.String)¶ Arguments: - context (Microsoft.AspNet.Mvc.ActionContext) –
- partialViewName (System.String) –
Return type: Microsoft.AspNet.Mvc.Rendering.ViewEngineResult
public ViewEngineResult FindPartialView(ActionContext context, string partialViewName)
-
FindView
(Microsoft.AspNet.Mvc.ActionContext, System.String)¶ Arguments: - context (Microsoft.AspNet.Mvc.ActionContext) –
- viewName (System.String) –
Return type: Microsoft.AspNet.Mvc.Rendering.ViewEngineResult
public ViewEngineResult FindView(ActionContext context, string viewName)
-