HttpUtility::UrlEncodeToBytes Method
.NET Framework (current version)
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.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | UrlEncodeToBytes(array<Byte>^) | Converts an array of bytes into a URL-encoded array of bytes. |
![]() ![]() | UrlEncodeToBytes(array<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. |
![]() ![]() | UrlEncodeToBytes(String^) | Converts a string into a URL-encoded array of bytes. |
![]() ![]() | UrlEncodeToBytes(String^, Encoding^) | Converts a string into a URL-encoded array of bytes using the specified encoding object. |
Show:

