PathUtilsMakeValidFileName Method |
Returns a string that is similar to an original string and can be used as
a file system path component (directory or file name).
Namespace:
PDTec.IceNet.Sdk.Utils
Assembly:
PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax public static string MakeValidFileName(
string fileName,
char replacementChar = '_'
)
Parameters
- fileName
- Type: SystemString
The original file name string - replacementChar (Optional)
- Type: SystemChar
The character to replace invalid original characters with.
Return Value
Type:
StringA string similar to
fileName that should be useable as a file system path component.
Remarks
This method only filters out illegal characters. Is does not deal with file
system specialities such as CON, COM1, LPT1, etc.
See Also