Click or drag to resize

Utils_FileReplaceFileNameInvalidCharacters Method

Replaces "Path.GetInvalidFileNameChars" by a given character.

Namespace:  MicaSystems.Utils
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static string ReplaceFileNameInvalidCharacters(
	string fileName,
	char replacementCharacter
)

Parameters

fileName
Type: SystemString
Name to check.
replacementCharacter
Type: SystemChar
Character used to replace invalid characters from the file name.

Return Value

Type: String
Returns adapted file name.
See Also