EscapeString 方法
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.