Enum<(Of <(<'T>)>)>..::..FromDescription Method
Converts a description string back to the corresponding enum value by matching against
LocalDescription, DescriptionAttribute, and enum member names.
Namespace:
AdvantageCMS.Core.Common.ExtensionAssembly: AdvantageCMS.Core (in AdvantageCMS.Core.dll)
Syntax
Parameters
- description
- Type: String
The description string to match.
- cultureCode
- Type: String
Optional culture code for culture-specific matching.
Return Value
The enum value whose description matches the specified string.Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when description is null or whitespace. |
| ArgumentException | Thrown when no matching enum value is found. |

