CodeGeneration.EscapeSingleQuotedStringContent(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.
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.