Escapes the specified string object. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Shared Function EscapeString ( _
value As String, _
charToEscape As Char _
) As String
'用途
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
參數
- value
型別:System.String
The string that represents the value.
- charToEscape
型別:System.Char
The specified character to escape.
傳回值
型別:System.String
The String that needs to be escaped.