BadWordsHelper.CheckBadWords Method (GeneralizedInfo, Dictionary<String, Int32>, Int32, Func<Boolean>)Kentico 8.0 API Reference
Performs bad words check.

Namespace: CMS.Protection
Assembly: CMS.Protection (in CMS.Protection.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

obj
Type: CMS.DataEngine.GeneralizedInfo
GeneralizedInfo info object
columns
Type: OnlineSystem.Collections.Generic.Dictionary<OnlineString, OnlineInt32>
Columns to check (column name and column size). If columns size is zero, column has maximal size and will not checked.
currentUserId
Type: OnlineSystem.Int32
ID of current user
validate
Type: OnlineSystem.Func<OnlineBoolean>
Function performing validation of checked object after respective bad words are removed. No further processing is done when validation fails.

Return Value

Type: OnlineString
See Also