Click or drag to resize

IOUtilitiesPathToValidFileName Method

Converts a text into a valid file name.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static string PathToValidFileName(
	string fileName,
	string reservedNameFormat = null,
	string reservedCharFormat = null
)

Parameters

fileName
Type: SystemString
The file name.
reservedNameFormat (Optional)
Type: SystemString
The reserved format to use for reserved names. If null '_{0}_' will be used.
reservedCharFormat (Optional)
Type: SystemString
The reserved format to use for reserved characters. If null '_x{0}_' will be used.

Return Value

Type: String
A valid file name.
Exceptions
ExceptionCondition
ArgumentNullExceptionfileName is null.
See Also