Click or drag to resize

PicklistGetFirstValueMatch Method (String, String, Boolean, Boolean, Object)

Finds the first matching item in the collection. The search always starts at the beginning of the list. And performs a starts with search, or exact match search, as specified. Note that if allowDisabled is specified, a disabled item will only be matched if there are no matching enabled items.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public bool GetFirstValueMatch(
	string text,
	string discrim,
	bool startsWith,
	bool allowDisabled,
	out Object value
)

Parameters

text
Type: SystemString
The text to search for
discrim
Type: SystemString
The discrim value to use.
startsWith
Type: SystemBoolean
True to perform a "starts with" search, else False for an exact match search.
allowDisabled
Type: SystemBoolean
True to allow matches of disabled items, else False to not match on such items.
value
Type: SystemObject
Reference to the matching object's value.

Return Value

Type: Boolean
True if the item matches, False otherwise.
See Also