Click or drag to resize

PicklistGetDisplayText Method (Object, String, GetListOptions)

Returns the display text for a specified keyValue per the specified GetListOptions. Note that you can use GetDisplayText(String, Object, String, GetListOptions) to perform a safe lookup when it is possible that the picklist may not exist.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public string GetDisplayText(
	Object keyValue,
	string discrim,
	GetListOptions options
)

Parameters

keyValue
Type: SystemObject
The key value to search for.
discrim
Type: SystemString
The discriminator of the item to search for. If the picklist uses discrims then both key and discrim must match the item's key and discrim to be considered a match unless the IgnoreDiscrim option is specified. If that option is specified, and a key + discrim match is not found, a key-only search will be performed.
options
Type: NetQuarryGetListOptions
Options specifying how to find the item.

Return Value

Type: String
The item's display text if found, otherwise an empty string.
See Also