Class ViewContextExtensions
Convenient extension methods to Microsoft.AspNetCore.Mvc.Rendering.ViewContext for templating
Inheritance
System.Object
ViewContextExtensions
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public static class ViewContextExtensions : Object
Methods
ContentRenderingContext(ViewContext)
Gets the current ContentRenderingContext or null if the current request is not a routed content request
Declaration
public static ContentRenderingContext ContentRenderingContext(this ViewContext viewContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Rendering.ViewContext | viewContext |
Returns
Type | Description |
---|---|
ContentRenderingContext |