Click or drag to resize
SearchableExtensionsAddContentField Method
Process search settings of DataClass field and inserts required search field into search fields collection when field is marked as content field.

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

Parameters

infoObj
Type: CMS.DataEngineISearchable
Object instance
searchSetting
Type: CMS.DataEngineSearchSettingsInfo
Search settings of DataClass field
searchFields
Type: CMS.DataEngineISearchFields
Search fields collection
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 ISearchable. 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