Class CategoryListExtensions

Contains extension methods related to CategoryList(HtmlHelper, CategoryList) for System.Web.Mvc.HtmlHelper.

Inheritance
System.Object
CategoryListExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc.Html
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public static class CategoryListExtensions

Methods

CategoryList(HtmlHelper, CategoryList)

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

Declaration
public static MvcHtmlString CategoryList(this HtmlHelper htmlHelper, CategoryList categoryList)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper htmlHelper

The HTML helper instance that this method extends.

CategoryList categoryList

The category list whose value to return.

Returns
Type Description
System.Web.Mvc.MvcHtmlString

The value of the categoryList as a comma separated list of category names or System.Web.Mvc.MvcHtmlString.Empty if no value is set.