Class RazorPageExtensions
- Namespace
- Umbraco.Extensions
- Assembly
- Umbraco.Web.Common.dll
Extension methods for RazorPage
public static class RazorPageExtensions
- Inheritance
-
RazorPageExtensions
- Inherited Members
Methods
RenderSection(RazorPage, string, HtmlString)
Renders a section with default content if the section isn't defined
public static HtmlString? RenderSection(this RazorPage webPage, string name, HtmlString defaultContents)
Parameters
webPage
RazorPagename
stringdefaultContents
HtmlString
Returns
RenderSection(RazorPage, string, string)
Renders a section with default content if the section isn't defined
public static HtmlString? RenderSection(this RazorPage webPage, string name, string defaultContents)