System.Data.Generic
DataSourceEscapeSql Method (String, Object) |
Note: This API is now obsolete.
Escapes standard SQL characters. Can be used as String.Format.
Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)

[ObsoleteAttribute("EscapeSql is obsolete and embedded with PrepareSql.")] public static string EscapeSql( string sql, params Object[] args )
<ObsoleteAttribute("EscapeSql is obsolete and embedded with PrepareSql.")> Public Shared Function EscapeSql ( sql As String, ParamArray args As Object() ) As String
public: [ObsoleteAttribute(L"EscapeSql is obsolete and embedded with PrepareSql.")] static String^ EscapeSql( String^ sql, ... array<Object^>^ args )
[<ObsoleteAttribute("EscapeSql is obsolete and embedded with PrepareSql.")>] static member EscapeSql : sql : string * args : Object[] -> string
Parameters
- sql
- Type: SystemString
SQL statement to escape. - args
- Type: SystemObject
Arguments to format.
Return Value
Type: StringEscaped SQL string.

Replaces ' with ''.
