|
DataExtensionsSQLEncode Method
|
Performs SQL encoding on given SQL string.
Namespace: GSF.DataAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntax<ExtensionAttribute>
Public Shared Function SQLEncode (
sql As String,
Optional databaseType As DatabaseType = DatabaseType.Other
) As String
[<ExtensionAttribute>]
static member SQLEncode :
sql : string *
?databaseType : DatabaseType
(* Defaults:
let _databaseType = defaultArg databaseType DatabaseType.Other
*)
-> string
GSF.Data.DataExtensions.SQLEncode = function(sql, databaseType);
View SourceParameters
- sql String
- The string on which SQL encoding is to be performed.
- databaseType DatabaseType (Optional)
- Database type for the SQL encoding.
Return Value
StringThe SQL encoded 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).
See Also