|
DataExtensionsSQLEncode Method
|
Performs SQL encoding on given SQL string.
Namespace: GSF.DataAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
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