Click or drag to resize
SearchFieldsAddInternal Method
Adds new field to collection. When field already exists, it will be updated (merged with existing one). When adding content field with it's value multiple times, the value is appended to existing content.

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 11.0.0
Syntax
C#
protected virtual ISearchField AddInternal(
	ISearchField field
)

Parameters

field
Type: CMS.DataEngineISearchField
Field to add

Return Value

Type: ISearchField
Newly added or existing field
Exceptions
ExceptionCondition
InvalidOperationExceptionWhen StoreValues is true and we try to add already existing field but with different value.
See Also