Table of Contents

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 RazorPage
name string
defaultContents HtmlString

Returns

HtmlString

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)

Parameters

webPage RazorPage
name string
defaultContents string

Returns

HtmlString