Click or drag to resize
SearchFieldsUpdateExistingField Method
Updates existing search field in collection

Namespace: CMS.Search
Assembly: CMS.Search (in CMS.Search.dll) Version: 12.0.0
Syntax
C#
protected virtual ISearchField UpdateExistingField(
	ISearchField newField
)

Parameters

newField
Type: CMS.DataEngineISearchField
Field with new data

Return Value

Type: ISearchField
Updated field
Exceptions
ExceptionCondition
InvalidOperationExceptionWhen StoreValues is true and we try to add already existing field but with different value.
InvalidOperationExceptionWhen field with given field name doesn't exist.
See Also