Windows apps
Collapse the table of content
Expand the table of content

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)

public static char[] GetInvalidPathChars()

Return Value

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

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.

Show:
© 2017 Microsoft