Share via


HttpUtility members

Provides access to methods used to encode and decode strings during the processing of Web requests.

The HttpUtility type exposes the following members.

Constructors

  Name Description
Protected method HttpUtility Initializes a new instance of the SPHttpUtility class.

Top

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, Boolean) Encodes path portion of an URL for reliable HTTP transmission from the Web server to a client.
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