Click or drag to resize
SearchableExtensionsAddSearchableField Method
Process search settings of DataClass field and inserts required search field into search fields collection when field is searchable.

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

Parameters

infoObj
Type: CMS.DataEngineISearchable
Object instance
searchSetting
Type: CMS.DataEngineSearchSettingsInfo
Search settings of DataClass field
searchFields
Type: CMS.DataEngineISearchFields
Search fields collection

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