Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class CategoryListExtensions

Contains extension methods related to CategoryList(IHtmlHelper, CategoryList) for Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.

Inheritance
System.Object
CategoryListExtensions
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.Cms.AspNetCore.HtmlHelpers.dll
Version: 12.0.3
Syntax
public static class CategoryListExtensions : Object

Methods

CategoryList(IHtmlHelper, CategoryList)

Returns the value of the specified CategoryList as a comma separated list of category names.

Declaration
public static IHtmlContent CategoryList(this IHtmlHelper htmlHelper, CategoryList categoryList)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper htmlHelper

The HTML helper instance that this method extends.

CategoryList categoryList

The category list whose value to return.

Returns
Type Description
Microsoft.AspNetCore.Html.IHtmlContent

The value of the categoryList as a comma separated list of category names or Microsoft.AspNetCore.Html.HtmlString.Empty if no value is set.