Cleans the name of the file.
Namespace: DotNetNuke.CommonAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public static string CleanFileName( string FileName, string BadChars, string ReplaceChar ) |
| Visual Basic |
|---|
Public Shared Function CleanFileName ( FileName As String, BadChars As String, ReplaceChar As String ) As String |
Parameters
- FileName
- Type: System..::..String
Name of the file.
- BadChars
- Type: System..::..String
The bad chars.
- ReplaceChar
- Type: System..::..String
The replace char.