WildcardPattern.ContainsWildcardCharacters(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.
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.