A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class EnumSelectionFactory

Selection factory for enum types.

Inheritance
System.Object
EnumSelectionFactory
Implements
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.VisitorGroups
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class EnumSelectionFactory : ISelectionFactory

Constructors

EnumSelectionFactory()

Declaration
public EnumSelectionFactory()

EnumSelectionFactory(LocalizationService)

Declaration
public EnumSelectionFactory(LocalizationService localizationService)
Parameters
Type Name Description
LocalizationService localizationService

Methods

GetSelectListItems(Type)

Gets the select list items.

Declaration
public IEnumerable<SelectListItem> GetSelectListItems(Type property)
Parameters
Type Name Description
System.Type property

The property.

Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.Mvc.SelectListItem>

Implements

Extension Methods