FilePathGetValidFilePath Method
Gets a valid file path by replacing invalid file or directory name characters with replaceWithCharacter.
Namespace: Gemstone.IOAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.110 -- Release Build+3e0464f4461df4d3e1175b13966eb47ff832554d
public static string GetValidFilePath(
string filePath,
char replaceWithCharacter = '_'
)
Public Shared Function GetValidFilePath (
filePath As String,
Optional replaceWithCharacter As Char = "_"C
) As String
public:
static String^ GetValidFilePath(
String^ filePath,
wchar_t replaceWithCharacter = L'_'
)
Gemstone.IO.FilePath.GetValidFilePath = function(filePath, replaceWithCharacter);
- filePath String
- File path to validate.
- replaceWithCharacter Char (Optional)
- Character to replace invalid file or directory name characters with. Set to '\0' to remove invalid file or directory name characters.
StringA valid file path with no invalid file or directory name characters.