EnumStringRepresentationExtensions ToEnum TEnum  Method (String)Kentico 8.0 API Reference
Converts the string representation of the enum value to the actual enum value.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

stringRepresentation
Type: OnlineSystem String
String representation of the enum value

Return Value

Type: TEnum
Returns the enum value if it is specified using the EnumStringRepresentationAttribute. Otherwise returns the default enum value.
See Also