Partager via


CodeGeneration.EscapeSingleQuotedStringContent(String) Method

Definition

Escapes content so that it is safe for inclusion in a single-quoted string. For example: "'" + EscapeSingleQuotedStringContent(userContent) + "'"

public:
 static System::String ^ EscapeSingleQuotedStringContent(System::String ^ value);
public:
 static Platform::String ^ EscapeSingleQuotedStringContent(Platform::String ^ value);
 static std::wstring EscapeSingleQuotedStringContent(std::wstring const & value);
public static string EscapeSingleQuotedStringContent (string value);
static member EscapeSingleQuotedStringContent : string -> string
Public Shared Function EscapeSingleQuotedStringContent (value As String) As String

Parameters

value
String

The content to be included in a single-quoted string.

Returns

Content with all single-quotes escaped.

Applies to