共用方式為


SPHttpUtility.AddQuote method (String, Char, TextWriter)

將指定的字串包含在引號內使用指定的字元,並將其附加至指定的輸出資料流。

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Sub AddQuote ( _
    value As String, _
    quoteCharacter As Char, _
    output As TextWriter _
)
'用途
Dim value As String
Dim quoteCharacter As Char
Dim output As TextWriterSPHttpUtility.AddQuote(value, quoteCharacter, _
    output)
public static void AddQuote(
    string value,
    char quoteCharacter,
    TextWriter output
)

參數

  • quoteCharacter
    Type: System.Char

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

備註

未逸出原始文字中的字元。

quoteCharacter參數的值可以是任何值。

請參閱

參照

SPHttpUtility class

SPHttpUtility members

AddQuote overload

Microsoft.SharePoint.Utilities namespace