HttpUtility Methods

Include Protected Members
Include Inherited Members

The HttpUtility type exposes the following members.

Methods

  Name Description
Public methodStatic member EcmaScriptStringLiteralEncode(String) Retrieves an encoded version of the specified JavaScript string.
Public methodStatic member EcmaScriptStringLiteralEncode(String, TextWriter) Retrieves an encoded version of the specified JavaScript string and appends it to the specified output stream.
Public methodStatic member HtmlEncode(String) Encodes the specified string for use as text between HTML tags, or as an attribute value inside an HTML tag.
Public methodStatic member HtmlEncode(String, TextWriter) Encodes the specified string as a text string to be enclosed in HTML tags, or as an attribute value inside an HTML tag, and appends it to the specified output stream.
Public methodStatic member HtmlUrlAttributeEncode(String) Encodes the specified string for use as an attribute value for URL type attributes, such as the href attribute of an anchor tag or the src attribute of an image tag.
Public methodStatic member HtmlUrlAttributeEncode(String, TextWriter) Encodes the specified string for use as an attribute value for URL type attributes, such as the href attribute of an anchor tag or the src attribute of an image tag, and appends it to the specified output stream.
Public method ToString (Inherited from Object.)
Public methodStatic member UrlKeyValueDecode Decodes the specified encoded URL query string key or value.
Public methodStatic member UrlKeyValueEncode(Guid) Encodes a GUID for use in a URL query string.
Public methodStatic member UrlKeyValueEncode(Int32) Encodes an integer key or value for use in a URL query string.
Public methodStatic member UrlKeyValueEncode(String) Encodes a string for use in a URL query string.
Public methodStatic member UrlKeyValueEncode(String, TextWriter) Encodes the specified URL query string key or value, and appends it to the specified output stream.
Public methodStatic member UrlKeyValueEncode(String, String) Encodes a string key and value for use in a URL query string.
Public methodStatic member UrlKeyValueEncode(String, String, TextWriter) Encodes a string key and value for use in a URL query string, and then appends it to the specified output stream.
Public methodStatic member UrlPathEncode(String, Boolean) Encodes the specified path part of a URL for HTTP transmission.
Public methodStatic member UrlPathEncode(String, Boolean, Boolean) Encodes the specified path part of a URL for HTTP transmission.
Public methodStatic member UrlPathEncode(String, Boolean, TextWriter) Encodes the specified path part of a URL for HTTP transmission and appends it to the specified output stream.
Public methodStatic member UrlPathEncode(String, Boolean, Boolean, TextWriter) Encodes the specified path part of a URL for HTTP transmission and appends it to the specified output stream.

Top

See Also

Reference

HttpUtility Class

Microsoft.SharePoint.Client.Utilities Namespace