HttpUtility.UrlKeyValueEncode 方法 (String, TextWriter)
編碼指定的 URL 查詢字串索引鍵或值,並將其附加至指定的輸出資料流。
命名空間: Microsoft.SharePoint.Client.Utilities
組件: Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Shared Sub UrlKeyValueEncode ( _
keyOrValueToEncode As String, _
output As TextWriter _
)
'用途
Dim keyOrValueToEncode As String
Dim output As TextWriterHttpUtility.UrlKeyValueEncode(keyOrValueToEncode, _
output)
public static void UrlKeyValueEncode(
string keyOrValueToEncode,
TextWriter output
)
參數
keyOrValueToEncode
類型:System.String索引鍵或值来編碼字串。
output
類型:System.IO.TextWriter表示您要新增編碼的鍵或值的輸出資料流TextWriter物件。
備註
如果其中一項keyOrValueToEncode或輸出參數是空值,此方法會有不會影響。