Click or drag to resize
SearchFieldsExtensionsAddContentField Method
Appends search field value into designated content field if IsContentField(ISearchIndexInfo, SearchSettingsInfo) is true.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public static void AddContentField(
	this ISearchFields searchFields,
	ISearchable infoObj,
	ISearchIndexInfo index,
	SearchSettingsInfo searchSetting,
	bool stripTags = false
)

Parameters

searchFields
Type: CMS.DataEngineISearchFields
Search fields collection.
infoObj
Type: CMS.DataEngineISearchable
Searchable object whose field represented by searchSetting is to be processed.
index
Type: CMS.DataEngineISearchIndexInfo
Search index for which the field is being processed.
searchSetting
Type: CMS.DataEngineSearchSettingsInfo
Search settings of DataClass field.
stripTags (Optional)
Type: SystemBoolean
Indicates if HTML tags should be removed from content.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISearchFields. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also