class WebUtility

in global :: System . Net

Provides methods for encoding and decoding URLs when processing Web requests.


public static string HtmlDecode( string value )

Converts a string that has been HTML-encoded for HTTP transmission into a decoded string.

  • value The string to decode.
  • Returns A decoded string.

public static void HtmlDecode( string value, TextWriter output )

Converts a string that has been HTML-encoded into a decoded string, and sends the decoded string to a output stream.

  • value The string to decode.
  • output A stream of output.

public static string HtmlEncode( string value )

Converts a string to an HTML-encoded string.

  • value The string to encode.
  • Returns An encoded string.

public static void HtmlEncode( string value, TextWriter output )

Converts a string into an HTML-encoded string, and returns the output as a stream of output.

  • value The string to encode.
  • output A output stream.

public static string UrlDecode( string encodedValue )

Converts a string that has been encoded for transmission in a URL into a decoded string.

  • encodedValue A URL-encoded string to decode.
  • Returns A decoded string.

public static byte[] UrlDecodeToBytes( byte[] encodedValue, int offset, int count )

Converts an encoded byte array that has been encoded for transmission in a URL into a decoded byte array.

  • encodedValue A URL-encoded array to decode.
  • offset The offset, in bytes, from the start of the array to decode.
  • count The count, in bytes, to decode from the array.
  • Returns A decoded array.

public static string UrlEncode( string value )

Converts a text string into a URL-encoded string.

  • value The text to URL-encode.
  • Returns A URL-encoded string.

public static byte[] UrlEncodeToBytes( byte[] value, int offset, int count )

Converts a byte array into a URL-encoded byte array.

  • value The array to URL-encode.
  • offset The offset, in bytes, from the start of the array to encode.
  • count The count, in bytes, to encode from the array.
  • Returns An encoded array.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.