EnumerationIsDefinedT Method |  |
Gives true exist parameter value pValue in enumeration else false
Namespace:
SOWIData.Helper
Assembly:
SOWIData.Helper (in SOWIData.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntaxpublic static bool IsDefined<T>(
string pValue
)
Public Shared Function IsDefined(Of T) (
pValue As String
) As Boolean
Parameters
- pValue
- Type: SystemString
check string value of enumeration
Type Parameters
- T
- enumeration type
Return Value
Type:
Boolean[Missing <returns> documentation for "M:SOWIData.Helper.Enumeration.IsDefined``1(System.String)"]
Examples
This example checked is value of variable lXMLValueException into enumeration of SOWIData.Helper.XMLValueExceptions
var lXMLValueException = lXMLValue;
if (Enum.IsDefined(typeof(SOWIData.Helper.XMLValueExceptions), lXMLValueException))
{
}
See Also