SPHttpUtility.AddQuote method (String, Char)
將指定的字串包含在引號內使用指定的字元。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function AddQuote ( _
value As String, _
quoteCharacter As Char _
) As String
'用途
Dim value As String
Dim quoteCharacter As Char
Dim returnValue As String
returnValue = SPHttpUtility.AddQuote(value, _
quoteCharacter)
public static string AddQuote(
string value,
char quoteCharacter
)
參數
value
Type: System.String要以引號括住的字串。
quoteCharacter
Type: System.Char代表要使用的引號字元 16 位元Char 。
傳回值
Type: System.String
在指定的引號括住的字串。