HttpUtility Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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
Public NotInheritable Class HttpUtility
public static class HttpUtility
The HttpUtility type exposes the following members.
Methods
Name | Description | |
---|---|---|
HtmlDecode | Converts a string that has been HTML-encoded (for HTTP transmission) into a decoded string. | |
HtmlEncode | Converts a text string into an HTML-encoded string. | |
UrlDecode | Converts a string that has been encoded for transmission in a URL into a decoded string. | |
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.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_NETWORKING |
Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone
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.