Partager via


Méthode EscapeString

Escapes the specified string object. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public Shared Function EscapeString ( _
    value As String, _
    charToEscape As Char _
) As String
'Utilisation
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

Paramètres

Valeur de retour

Type : System. . :: . .String
The String that needs to be escaped.