System.Web (system.web.dll) | sealed class |
This class provides static (shared) helper methods. The
UrlEncode( ) and UrlDecode( )
methods are the same as those provided by the
HttpServerUtility class for encoding a string into
a format that's safe for use in a URL. Additionally,
a UrlEncodeToBytes( ) method is provided to
convert a string into an array of bytes and a
UrlEncodeUnicode( ) method to convert a string
into a Unicode string.public sealed class HttpUtility {
// Public Constructors
public HttpUtility ( );
// Public Static Methods
public static string HtmlAttributeEncode (string s );
public static void HtmlAttributeEncode (string s , System.IO.TextWriter output );
public static string HtmlDecode (string s );
public static void HtmlDecode (string s , System.IO.TextWriter output );
public static string HtmlEncode (string s );
public static void HtmlEncode (string s , System.IO.TextWriter output );
public static string UrlDecode (byte[ ] bytes , System.Text.Encoding e );
public static string UrlDecode (byte[ ] bytes , int offset , int count , System.Text.Encoding e );
public static string UrlDecode (string str );
public static string UrlDecode (string str , System.Text.Encoding e );
public static byte[ ] UrlDecodeToBytes (byte[ ] bytes );
public static byte[ ] UrlDecodeToBytes (byte[ ] bytes , int offset , int count );
public static byte[ ] UrlDecodeToBytes (string str );
public static byte[ ] UrlDecodeToBytes (string str , System.Text.Encoding e );
public static string UrlEncode (byte[ ] bytes );
public static string UrlEncode (byte[ ] bytes , int offset , int count );
public static string UrlEncode (string str );
public static string UrlEncode (string str , System.Text.Encoding e );
public static byte[ ] UrlEncodeToBytes (byte[ ] bytes );
public static byte[ ] UrlEncodeToBytes (byte[ ] bytes , int offset , int count );
public static byte[ ] UrlEncodeToBytes (string str );
public static byte[ ] UrlEncodeToBytes (string str , System.Text.Encoding e );
public static string UrlEncodeUnicode (string str );
public static byte[ ] UrlEncodeUnicodeToBytes (string str );
public static string UrlPathEncode (string str );
}