共用方式為


SPEncode.WriteUrlEncodeAsUrlWithQuote method

編碼指定的字串及寫入至 HTTP 輸出內容資料流轉換特殊字元以引號括住它以引號括住 utf-8 格式,但假設字串的 URL 路徑元件。

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

Syntax

'宣告
Public Shared Sub WriteUrlEncodeAsUrlWithQuote ( _
    response As HttpResponse, _
    str As String, _
    quoteChar As Char _
)
'用途
Dim response As HttpResponse
Dim str As String
Dim quoteChar As CharSPEncode.WriteUrlEncodeAsUrlWithQuote(response, _
    str, quoteChar)
public static void WriteUrlEncodeAsUrlWithQuote(
    HttpResponse response,
    string str,
    char quoteChar
)

參數

  • quoteChar
    Type: System.Char

    會指定要用於引號字元 System.Char 物件。

備註

不同WriteUrlEncode方法, UrlEncodeAsUrl方法不會編碼正斜線 ("/")。

請參閱

參照

SPEncode class

SPEncode members

Microsoft.SharePoint.Utilities namespace