SPEncode.WriteScriptEncodeWithQuote method
編碼的指令碼中使用的字串,並在引號中寫入 HTTP 輸出內容資料流的字串。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Sub WriteScriptEncodeWithQuote ( _
response As HttpResponse, _
str As String, _
quoteChar As Char _
)
'用途
Dim response As HttpResponse
Dim str As String
Dim quoteChar As CharSPEncode.WriteScriptEncodeWithQuote(response, _
str, quoteChar)
public static void WriteScriptEncodeWithQuote(
HttpResponse response,
string str,
char quoteChar
)
參數
response
Type: System.Web.HttpResponse目前 HTTP 要求 System.HttpResponse 物件。
str
Type: System.String要編碼的字串。
quoteChar
Type: System.Char會指定要用於引號字元 System.Char 物件。