EscapeString Method

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Escapes the string.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0

Syntax

C#
public static string EscapeString(
	string value
)
Visual Basic
Public Shared Function EscapeString ( _
	value As String _
) As String
Visual C++
public:
static String^ EscapeString(
	String^ value
)

Parameters

value
Type: System..::..String
The string to escape

Return Value

The string with all quotes escaped.

See Also