Click or drag to resize

FieldsFind Method (String, FieldFindType, FindBehaviour)

Searches for an IField in the collection based on FieldFindType.

The searchID depends on the findType:

findTypesearchID
ByKeyThe field's Key name IField.Key.
ByCtrlNmThe field's IField.ControlName.
PKFinds the first field marked PK in the collection.
ByAliasFind field by IField.AliasName
UniqueKeyFinds the field marked UniqueKey in the collection (there should be no more than one), if any, else the first field marked PK.
ByCtrlUniqueIdFinds field by it's BaseControl's fully qualified UniqueID
ByFieldIDFinds field by it's GUID (xmt_fields.field_id).
AlternateKeyFinds the field marked AlternateKey, or if no such field and there is exactly one field marked as PK, that field.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public IField Find(
	string searchID,
	FieldFindType findType,
	FindBehaviour behaviour
)

Parameters

searchID
Type: SystemString
The string to use for matching, according to the findType.
findType
Type: NetQuarry.DataFieldFindType
The type of search to perform.
behaviour
Type: NetQuarry.DataFindBehaviour
How the find should behave under specified circumstances (in particular when no such field is found).

Return Value

Type: IField
An IField object if found, otherwise null
See Also