Click or drag to resize
SearchFieldsAdd 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.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 12.0.0
Syntax
C#
public virtual 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.

Implements

ISearchFieldsAdd(ISearchField, FuncObject)
See Also