FileIOHelperGetValidPathNameFragment Method |
Get a valid file name part out of a raw file name that can contain invalid characters. Those characters are
replaced by unicode characters. Attention: the provided name should not be an absolute file name. This is because
here, in a file name like C:\Temp.txt, the colon would be replaced by a unicode character. If an absolute name needs
to be processed, use the function
GetValidFullPathName(String). Backslash chars are sustained.
Namespace: Altaxo.SerializationAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static string GetValidPathNameFragment(
string name
)
Parameters
- name String
- The name. Should not be an absolute file name.
Return Value
StringThe name without invalid characters, so that it can be used for a name part in the file system.
See Also