HttpUtility.UrlKeyValueEncode Method (String, TextWriter)
Encodes the specified URL query string key or value, and appends it to the specified output stream.
Namespace: Microsoft.SharePoint.Client.Utilities
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Shared Sub UrlKeyValueEncode ( _
keyOrValueToEncode As String, _
output As TextWriter _
)
'Usage
Dim keyOrValueToEncode As String
Dim output As TextWriterHttpUtility.UrlKeyValueEncode(keyOrValueToEncode, _
output)
public static void UrlKeyValueEncode(
string keyOrValueToEncode,
TextWriter output
)
Parameters
keyOrValueToEncode
Type: System.StringThe key or value string to be encoded.
output
Type: System.IO.TextWriterA TextWriter object that represents the output stream to which to add the encoded key or value.
Remarks
If either of the keyOrValueToEncode or output parameters is null, this method has no effect.