StringExtensionsAnsiQuote Method |
Quote a string for a SQL statement including escaping embedded ticks.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string AnsiQuote(
this string s
)
<ExtensionAttribute>
Public Shared Function AnsiQuote (
s As String
) As String
Parameters
- s
- Type: SystemString
The value to quote.
Return Value
Type:
StringThe quoted string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks Note that if the object is null then the return value is an empty string. Uses
AnsiQuote(String).
See Also