Path.GetInvalidFileNameChars Method

July 28, 2014

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

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

public static char[] GetInvalidFileNameChars()

Return Value

Type: System.Char []
An array containing the characters that are not allowed in file names.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft