HttpUtility::UrlEncode Method
.NET Framework (current version)
Encodes a URL string. These method overloads can be used to encode the entire URL, including query-string values.
To encode or decode values outside of a web application, use the WebUtility class.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | UrlEncode(array<Byte>^) | Converts a byte array into an encoded URL string. |
![]() ![]() | UrlEncode(array<Byte>^, Int32, Int32) | Converts a byte array into a URL-encoded string, starting at the specified position in the array and continuing for the specified number of bytes. |
![]() ![]() | UrlEncode(String^) | Encodes a URL string. |
![]() ![]() | UrlEncode(String^, Encoding^) | Encodes a URL string using the specified encoding object. |
Show:

