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,
bool ignoreCase
)
public static bool IsStringDefined(
Type enumType,
string stringValue,
bool ignoreCase
)
Public Shared Function IsStringDefined ( _
enumType As Type, _
stringValue As String, _
ignoreCase As Boolean _
) As Boolean
Public Shared Function IsStringDefined ( _
enumType As Type, _
stringValue As String, _
ignoreCase As Boolean _
) As Boolean
public:
static bool IsStringDefined(
Type^ enumType,
String^ stringValue,
bool ignoreCase
)
public:
static bool IsStringDefined(
Type^ enumType,
String^ stringValue,
bool ignoreCase
)
static member IsStringDefined :
enumType : Type *
stringValue : string *
ignoreCase : bool -> bool
static member IsStringDefined :
enumType : Type *
stringValue : string *
ignoreCase : bool -> bool
Parameters
- enumType
- Type: System Type
Type of enum
- stringValue
- Type: System String
String value.
- ignoreCase
- Type: System Boolean
Denotes whether to conduct a case-insensitive match on the supplied string value
Return Value
Existence of the string value