PathUtil.HasInvalidChars(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns whether path
contains any invalid path characters.
This method uses a cached array, in contrast to GetInvalidPathChars(),
which allocates a new array for each call.
public static bool HasInvalidChars (string path);
static member HasInvalidChars : string -> bool
Public Function HasInvalidChars (path As String) As Boolean
Parameters
- path
- String