WildcardPattern.Escape(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.
Escape special chars in a string by replacing them with their escape codes.
public:
static System::String ^ Escape(System::String ^ pattern);
public:
static Platform::String ^ Escape(Platform::String ^ pattern);
static std::wstring Escape(std::wstring const & pattern);
public static string Escape (string pattern);
static member Escape : string -> string
Public Shared Function Escape (pattern As String) As String
Parameters
- pattern
- String
The input string containing the text to convert.
Returns
A string of characters with any metacharacters converted to their escaped form.