WildcardPattern.ContainsWildcardCharacters(String) Method

Definition

Checks to see if the given string has any wild card characters in it.

public:
 static bool ContainsWildcardCharacters(System::String ^ pattern);
public:
 static bool ContainsWildcardCharacters(Platform::String ^ pattern);
 static bool ContainsWildcardCharacters(std::wstring const & pattern);
public static bool ContainsWildcardCharacters (string pattern);
static member ContainsWildcardCharacters : string -> bool
Public Shared Function ContainsWildcardCharacters (pattern As String) As Boolean

Parameters

pattern
String

String which needs to be checked for the presence of wildcard chars

Returns

True if the string has wild card chars, false otherwise..

Remarks

Currently { '*', '?', '[' } are considered wild card chars and '`' is the escape character.

Applies to