IsValidClientValue

bool IsValidClientValue(string clientValue)

Returns true if an instance corresponding to a given client value exists.

Parameters

Name Description
string clientValue The client value.

Example

cEnumeration enumOrderSupplyType = cEnumeration.Get("OrderSupplyType");

// Validate the text in the field dfsSupplyType and exit if it's not a valid one!
bool isValidClientValue = enumOrderSupplyType.IsValidClientValue(dfsSupplyType.Text);
if (!isValidClientValue)
   return;

Comments

This is equivalent client method to the database domain function <Domain>_API.Exists(client_value_ IN VARCHAR2) RETURN BOOLEAN