Click or drag to resize
BadWordsHelperCheckBadWords Method (GeneralizedInfo, DictionaryString, Int32, String, String, Int32, FuncBoolean)
Performs bad words check.

Namespace: CMS.Protection
Assembly: CMS.Protection (in CMS.Protection.dll) Version: 12.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.DataEngineGeneralizedInfo
GeneralizedInfo info object
columns
Type: System.Collections.GenericDictionaryString, Int32
Columns to check (column name and column size). If columns size is zero, column has maximal size and will not checked.
approvalColumn
Type: SystemString
Approval column name
approvalUserColumn
Type: SystemString
Approval user column name
currentUserId
Type: SystemInt32
ID of current user
validate
Type: SystemFuncBoolean
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