Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.Chat Namespaces
CMS.Chat
EnumExtensionMethods Class
EnumExtensionMethods Methods
ToStringValue Method
ToStringValue Method (Enum)
ToStringValue Method (Enum, Int32)
EnumExtensionMethods
ToStringValue Method (Enum, Int32)
Gets the string value of an enum element from the first KeyStringValue with Key equals to
key
.
Namespace:
CMS.Chat
Assembly:
CMS.Chat (in CMS.Chat.dll) Version: 12.0.0
Syntax
C#
Copy
public
static
string
ToStringValue
(
this
Enum
en
,
int
key
)
Parameters
en
Type:
System
Enum
Enum
key
Type:
System
Int32
Key of KeyStringValue
Return Value
Type:
String
String value of an enum
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Enum
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
EnumExtensionMethods Class
ToStringValue Overload
CMS.Chat Namespace
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com