Click or drag to resize
SearchFieldsExtensionsEnsureContentField Method
Ensures CONTENT field in collection. Field is created if it's not already present.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 10.0.0
Syntax
C#
public static ISearchField EnsureContentField(
	this ISearchFields fields
)

Parameters

fields
Type: CMS.DataEngineISearchFields
Search fields collection

Return Value

Type: ISearchField

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