This documentation is archived and is not being maintained.

HttpUtility.UrlEncodeToBytes Method

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

Name Description
HttpUtility.UrlEncodeToBytes (Byte[]) Converts an array of bytes into a URL-encoded array of bytes.
HttpUtility.UrlEncodeToBytes (String) Converts a string into a URL-encoded array of bytes.
HttpUtility.UrlEncodeToBytes (String, Encoding) Converts a string into a URL-encoded array of bytes using the specified encoding object.
HttpUtility.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.
Show: