Dela via


Util.EscapeString Method

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, _
    escapeCharacter As Char _
) As String
'Usage
Dim value As String
Dim escapeCharacter As Char
Dim returnValue As String

returnValue = Util.EscapeString(value, _
    escapeCharacter)
public static string EscapeString(
    string value,
    char escapeCharacter
)
public:
static String^ EscapeString(
    String^ value, 
    wchar_t escapeCharacter
)
static member EscapeString : 
        value:string * 
        escapeCharacter:char -> string 
public static function EscapeString(
    value : String, 
    escapeCharacter : char
) : String

Parameters

  • escapeCharacter
    Type: System.Char
    The character to escape.

Return Value

Type: System.String
The equivalent string with the character escaped.