Export (0) Print
Expand All

HttpUtility.UrlEncodeToBytes Method

Converts a string or a byte array into an encoded array of bytes.

To encode or decode values outside of a web application, use the WebUtility class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member UrlEncodeToBytes(Byte[]) Converts an array of bytes into a URL-encoded array of bytes.
Public method Static member UrlEncodeToBytes(String) Converts a string into a URL-encoded array of bytes.
Public method Static member UrlEncodeToBytes(String, Encoding) Converts a string into a URL-encoded array of bytes using the specified encoding object.
Public method Static member UrlEncodeToBytes(Byte[], Int32, Int32) Converts an array of bytes into a URL-encoded array of bytes, starting at the specified position in the array and continuing for the specified number of bytes.
Top
Show:
© 2014 Microsoft