Cleans the name of the file.

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

Syntax

C#
public static string CleanFileName(
	string FileName,
	string BadChars
)
Visual Basic
Public Shared Function CleanFileName ( 
	FileName As String,
	BadChars As String
) As String

Parameters

FileName
Type: System..::..String
Name of the file.
BadChars
Type: System..::..String
The bad chars.

Return Value

clean name

See Also