Click or drag to resize

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)
Syntax
public static bool IsDefined<T>(
	string pValue
)

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))
{
    // what to do?
}
See Also