Click or drag to resize

IOUtilitiesPathToValidFilePath Method

Converts a text into a valid file path.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static string PathToValidFilePath(
	string path,
	string reservedNameFormat = null,
	string reservedCharFormat = null
)

Parameters

path
Type: SystemString
The file path.
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
ArgumentNullExceptionpath is null.
See Also