UrlEncodeToBytes Method

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.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticUrlEncodeToBytes(Byte[])

Converts an array of bytes into a URL-encoded array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticUrlEncodeToBytes(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.

System_CAPS_pubmethodSystem_CAPS_staticUrlEncodeToBytes(String)

Converts a string into a URL-encoded array of bytes.

System_CAPS_pubmethodSystem_CAPS_staticUrlEncodeToBytes(String, Encoding)

Converts a string into a URL-encoded array of bytes using the specified encoding object.

Return to top
Show:
© 2016 Microsoft