FilenameFilterValidatePattern Method

Checks whether pattern is a valid search expression. Pattern is invalid when meets following conditions:

- contains any of invalid path characters (except * and ? which are used as wildcards)

- starts with two periods ("..")

- ends with two periods

Definition

Namespace: FileHold.Common
Assembly: FileHold.Common (in FileHold.Common.dll) Version: 17.2.0.0
C#
public static bool ValidatePattern(
	string pattern
)

Parameters

pattern  String
search expression to validate

Return Value

Boolean

See Also