class WebUtility
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.
valueThe 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.
valueThe string to decode.outputA stream of output.
public static string HtmlEncode( string value )
Converts a string to an HTML-encoded string.
valueThe 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.
valueThe string to encode.outputA output stream.
public static string UrlDecode( string encodedValue )
Converts a string that has been encoded for transmission in a URL into a decoded string.
encodedValueA 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.
encodedValueA URL-encoded array to decode.offsetThe offset, in bytes, from the start of the array to decode.countThe 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.
valueThe 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.
valueThe array to URL-encode.offsetThe offset, in bytes, from the start of the array to encode.countThe 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.