SfcTsqlProcFormatter.EscapeString Method
Escapes the specified string object. Do not reference this member directly in your code. It supports the SQL Server infrastructure.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Public Shared Function EscapeString ( _
value As String, _
charToEscape As Char _
) As String
'Usage
Dim value As String
Dim charToEscape As Char
Dim returnValue As String
returnValue = SfcTsqlProcFormatter.EscapeString(value, _
charToEscape)
public static string EscapeString(
string value,
char charToEscape
)
public:
static String^ EscapeString(
String^ value,
wchar_t charToEscape
)
static member EscapeString :
value:string *
charToEscape:char -> string
public static function EscapeString(
value : String,
charToEscape : char
) : String
Parameters
- value
Type: System.String
The string that represents the value.
- charToEscape
Type: System.Char
The specified character to escape.
Return Value
Type: System.String
The String that needs to be escaped.