Click or drag to resize
ISearchFieldsAdd Method
Adds a new field to the collection. If the field already exists, it is updated (merged with existing one). When adding a content field and its value multiple times, the value is appended to the existing content field.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 11.0.0
Syntax
C#
ISearchField Add(
	ISearchField searchField,
	Func<Object> getValueFunc
)

Parameters

searchField
Type: CMS.DataEngineISearchField
Search field to be added to the collection.
getValueFunc
Type: SystemFuncObject
Function that returns value of the field.

Return Value

Type: ISearchField
The search field added.
See Also