Share via


Urn.EscapeString Method

An escape string for use in an XPathExpression. 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
<ComVisibleAttribute(False)> _
Public Shared Function EscapeString ( _
    value As String _
) As String
'Usage
Dim value As String
Dim returnValue As String

returnValue = Urn.EscapeString(value)
[ComVisibleAttribute(false)]
public static string EscapeString(
    string value
)
[ComVisibleAttribute(false)]
public:
static String^ EscapeString(
    String^ value
)
[<ComVisibleAttribute(false)>]
static member EscapeString : 
        value:string -> string 
public static function EscapeString(
    value : String
) : String

Parameters

  • value
    Type: System.String
    The string to which escape characters '\' will be added.

Return Value

Type: System.String
The new string with escape characters.