Mono Class Library: System.Uri Overview | Members

System.Uri.IsBadFileSystemCharacter Method

Returns a bool value that indicates whether the specified character would be an invalid character if used in a file system name.

[System.Obsolete]
protected virtual bool IsBadFileSystemCharacter (char ch)

Parameters

ch
A char containing the character to check.

Returns

true if the specified character is not acceptable for use in a file system name; otherwise, false.

The value returned by this method is implementation-specific.

Remarks

Operation
This method returns false if the specified character cannot be used in a URI that identifies a file, as defined by the current file system on the current platform.

As described above.

Note to Inheritors
Override this method to provide a check for invalid characters as defined by the current file system on the current platform.

Usage
Use this method to determine if a character can be used in a file name.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0