EscapeString 方法
不要直接在程式碼中參照此成員。其支援 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, _
escapeCharacter As Char _
) As String
'用途
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
參數
- value
型別:System. . :: . .String
The string.
- escapeCharacter
型別:System. . :: . .Char
The character to escape.
傳回值
型別:System. . :: . .String
The equivalent string with the character escaped.