다음을 통해 공유


WildcardPattern.Escape(String) Method

Definition

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.

Applies to