Click or drag to resize
BadWordsHelper.CheckBadWords Method (GeneralizedInfo, Dictionary<String, Int32>, String, String, Int32, Func<Boolean>)
Performs bad words check.

Namespace: CMS.Protection
Assembly: CMS.Protection (in CMS.Protection.dll) Version: 10.0.0
Syntax
C#
public static string CheckBadWords(
	GeneralizedInfo obj,
	Dictionary<string, int> columns,
	string approvalColumn,
	string approvalUserColumn,
	int currentUserId,
	Func<bool> validate
)

Parameters

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

Return Value

Type: String
See Also