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.DataEngineAssembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax 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:
ISearchFieldThe search field added.
See Also