SPEncode.WriteUrlEncodeWithQuote 方法

对指定的字符串,将特殊字符转换为引用的 utf-8 格式进行编码,并在引号的字符串写入 HTTP 输出内容流。

命名空间:  Microsoft.SharePoint.Utilities
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Shared Sub WriteUrlEncodeWithQuote ( _
    response As HttpResponse, _
    str As String, _
    quoteChar As Char _
)
用法
Dim response As HttpResponse
Dim str As String
Dim quoteChar As CharSPEncode.WriteUrlEncodeWithQuote(response, _
    str, quoteChar)
public static void WriteUrlEncodeWithQuote(
    HttpResponse response,
    string str,
    char quoteChar
)

参数

  • quoteChar
    类型:System.Char

    指定要用于引号字符 System.Char 对象。

另请参阅

引用

SPEncode 类

SPEncode 成员

Microsoft.SharePoint.Utilities 命名空间