Click or drag to resize
BadWordInfoProviderCheckBadWord Method
Checks given text for given bad word.

Namespace: CMS.Protection
Assembly: CMS.Protection (in CMS.Protection.dll) Version: 12.0.0
Syntax
C#
public static BadWordActionEnum CheckBadWord(
	BadWordInfo word,
	string cultureCode,
	string siteName,
	ref string text,
	Hashtable foundWords,
	int maxTextLength
)

Parameters

word
Type: CMS.ProtectionBadWordInfo
BadWordInfo object
cultureCode
Type: SystemString
Code of culture
siteName
Type: SystemString
Site name
text
Type: SystemString
Text to check
foundWords
Type: System.CollectionsHashtable
Found words
maxTextLength
Type: SystemInt32
Maximum length of the text to be checked. If value is zero, text length is unlimited.

Return Value

Type: BadWordActionEnum
What action should be performed and modified text through the text parameter.
See Also