Return the existence of the given string value within the enum.
Namespace: CTCT.UtilAssembly: CTCT (in CTCT.dll) Version: 2.0.0.0 (2.0.0.0)
public static bool IsStringDefined(
Type enumType,
string stringValue
)
public static bool IsStringDefined(
Type enumType,
string stringValue
)
Public Shared Function IsStringDefined ( _
enumType As Type, _
stringValue As String _
) As Boolean
Public Shared Function IsStringDefined ( _
enumType As Type, _
stringValue As String _
) As Boolean
public:
static bool IsStringDefined(
Type^ enumType,
String^ stringValue
)
public:
static bool IsStringDefined(
Type^ enumType,
String^ stringValue
)
static member IsStringDefined :
enumType : Type *
stringValue : string -> bool
static member IsStringDefined :
enumType : Type *
stringValue : string -> bool
Parameters
- enumType
- Type: System Type
Type of enum
- stringValue
- Type: System String
String value.
Return Value
Existence of the string value