| 
            
              FilePathGetValidFilePath Method
             | 
          
        
        
            Gets a valid file path by replacing invalid file or directory name characters with replaceWithCharacter.
            
        
        Namespace: GSF.IOAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntaxpublic 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'_'
)
static member GetValidFilePath : 
        filePath : string * 
        ?replaceWithCharacter : char 
(* Defaults:
        let _replaceWithCharacter = defaultArg replaceWithCharacter '_'
*)
-> string GSF.IO.FilePath.GetValidFilePath = function(filePath, replaceWithCharacter);
 View SourceParameters
- 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.
 
Return Value
StringA valid file path with no invalid file or directory name characters.
See Also