UtilitiesParseEnumT Method (String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Parses a string as a specified enum-type.

Namespace: ContentStudio.Site.Controls
Assembly: ContentStudio.Site.Controls (in ContentStudio.Site.Controls.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public static T ParseEnum<T>(
	string value
)

Parameters

value
Type: SystemString
The value to parse.

Type Parameters

T
The type of enum to return

Return Value

Type: T
The parsed value as an enumeration
Exceptions

ExceptionCondition
ArgumentNullException cannot be null.
ArgumentExceptionType parameter T is not an enum - or - the passed in string value is not a member of the specified enumeration.
See Also

Reference