Partager via


HttpUtility Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides methods for encoding and decoding HTML and URL strings.

Inheritance Hierarchy

System.Object
  System.Net.HttpUtility

Namespace:  System.Net
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public NotInheritable Class HttpUtility
public static class HttpUtility

The HttpUtility type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone HtmlDecode Converts a string that has been HTML-encoded (for HTTP transmission) into a decoded string.
Public methodStatic memberSupported by Silverlight for Windows Phone HtmlEncode Converts a text string into an HTML-encoded string.
Public methodStatic memberSupported by Silverlight for Windows Phone UrlDecode Converts a string that has been encoded for transmission in a URL into a decoded string.
Public methodStatic memberSupported by Silverlight for Windows Phone UrlEncode Converts a text string into a URL-encoded string.

Top

Remarks

For more information, see the System.Web.HttpUtility class in the .NET Framework documentation.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference