Share via


GetInvalidPathChars Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets an array containing the characters that are not allowed in path names.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Shared Function GetInvalidPathChars As Char()
public static char[] GetInvalidPathChars()
public:
static array<wchar_t>^ GetInvalidPathChars()
static member GetInvalidPathChars : unit -> char[] 
public static function GetInvalidPathChars() : char[]

Return Value

Type: array<System. . :: . .Char> [] () [] []
An array containing the characters that are not allowed in path names.

Remarks

The array returned from this method is not guaranteed to contain the complete set of characters that are invalid in file and directory names. The full set of invalid characters can vary by file system.

.NET Framework Security

See Also

Reference

Path Class

System.IO Namespace