共用方式為


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
)

參數

  • quoteCharacter
    Type: System.Char

    代表要使用的引號字元 16 位元Char

傳回值

Type: System.String
在指定的引號括住的字串。

請參閱

參照

SPHttpUtility class

SPHttpUtility members

AddQuote overload

Microsoft.SharePoint.Utilities namespace