This function applies security filtering to the UserInput string, and reports whether the input string is valid.

Namespace: DotNetNuke.Security
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public bool ValidateInput(
	string userInput,
	PortalSecurity..::..FilterFlag filterType
)
Visual Basic
Public Function ValidateInput ( 
	userInput As String,
	filterType As PortalSecurity..::..FilterFlag
) As Boolean

Parameters

userInput
Type: System..::..String
This is the string to be filtered
filterType
Type: DotNetNuke.Security..::..PortalSecurity..::..FilterFlag
Flags which designate the filters to be applied

Return Value

returnsM:DotNetNuke.Security.PortalSecurity.ValidateInput(System.String,DotNetNuke.Security.PortalSecurity.FilterFlag)

See Also