Share via


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.String

    The key or value string to be encoded.

Remarks

If either of the keyOrValueToEncode or output parameters is null, this method has no effect.

See Also

Reference

HttpUtility Class

HttpUtility Members

UrlKeyValueEncode Overload

Microsoft.SharePoint.Client.Utilities Namespace