PathUtil.HasInvalidChars(String) Method

Definition

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

Returns

Applies to