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 EnumSelectionFactory

Selection factory for enum types.

Inheritance
System.Object
EnumSelectionFactory
Implements
EPiServer.Personalization.VisitorGroups.ISelectionFactory
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.dll
Version: 8.11.0
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

EPiServer.Personalization.VisitorGroups.ISelectionFactory

Extension Methods