Export (0) Print
Expand All

SPHttpUtility members

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

The SPHttpUtility type exposes the following members.

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

  Name Description
Public method Static member AddQuote(String) Encloses the specified string in quotation marks.
Public method Static member AddQuote(String, Char) Encloses the specified string in quotation marks using the specified character.
Public method Static member AddQuote(String, TextWriter) Encloses the specified string in quotation marks and appends the output to the specified output stream.
Public method Static member AddQuote(String, Char, TextWriter) Encloses the specified string in quotation marks using the specified character and appends it to the specified output stream.
Public method Static member ConvertSimpleHtmlToText Converts an HTML string from a Microsoft SharePoint Foundation rich text field to plain text.
Public method Static member EcmaScriptStringLiteralEncode(String) Returns an encoded version of the specified JavaScript.
Public method Static member EcmaScriptStringLiteralEncode(String, TextWriter) Returns an encoded version of the specified JavaScript and appends it to the specified output stream.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member HtmlDecode(String) Retrieves a decoded version of the specified encoded HTML string.
Public method Static member HtmlDecode(String, Boolean) Decodes a string that was encoded by the HtmlEncode(String) method.
Public method Static member HtmlEncode(Guid) Encodes the string with the specified GUID for use as text between HTML tags, or as an attribute value inside an HTML tag.
Public method Static member HtmlEncode(Int32) Retrieves the specified integer as a text string to be enclosed in HTML tags, or an attribute value inside an HTML tag.
Public method Static member HtmlEncode(String) Encodes the specified string for use as text between HTML tags, or as an attribute value inside an HTML tag.
Public method Static 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 method Static member HtmlEncodeAllowSimpleTextFormatting(String) Encodes the specified string for use as text between HTML tags, preserving spaces in the original string and allowing simple text formatting.
Public method Static member HtmlEncodeAllowSimpleTextFormatting(String, TextWriter) Encodes the specified string for use as text between HTML tags, preserving spaces in the original string and allowing simple text formatting, and appends it to the specified output stream.
Public method Static 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 method Static 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.
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member NoEncode(Object) Retrieves the specified string object as an unencoded string.
Public method Static member NoEncode(String) Retrieves the specified string as an unencoded string.
Public method Static member NoEncode(Object, TextWriter) Retrieves the specified string object as an unencoded string, and appends it to the specified output stream.
Public method ToString (Inherited from Object.)
Public method Static member UrlEncodeFilenameForHttpHeader Encodes a file name for use in an HTTP header.
Public method Static member UrlKeyValueDecode Decodes the specified encoded URL query string key or value.
Public method Static member UrlKeyValueEncode(Guid) Encodes a GUID for use in a URL query string.
Public method Static member UrlKeyValueEncode(Int32) Encodes an integer key or value for use in a URL query string.
Public method Static member UrlKeyValueEncode(String) Encodes a string for use in a URL query string.
Public method Static member UrlKeyValueEncode(String, TextWriter) Encodes the specified URL query string key or value, and appends it to the specified output stream.
Public method Static member UrlKeyValueEncode(String, String) Encodes a string key and value for use in a URL query string.
Public method Static 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 method Static member UrlPathDecode Decodes the specified encoded path part of a URL.
Public method Static member UrlPathEncode(String, Boolean) Encodes the specified path part of a URL for HTTP transmission.
Public method Static member UrlPathEncode(String, Boolean, Boolean) Encodes the specified path part of a URL for HTTP transmission.
Public method Static 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 method Static member UrlPathEncode(String, Boolean, Boolean, Boolean) Encodes path portion of an URL for reliable HTTP transmission from the Web server to a client.
Public method Static 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.
Public method Static member WriteAddQuote(String, Page) Add a quote character quote around a given string, send it to TextWriter output stream. This function is a wrapper for AddQuote that takes a Page instead of a TextWriter for an argument.
Public method Static member WriteAddQuote(String, Char, Page) Add a quote character quote around a given string, send it to TextWriter output stream. This function is a wrapper for AddQuote that takes a Page instead of a TextWriter for an argument.
Public method Static member WriteEcmaScriptStringLiteralEncode
Public method Static member WriteHtmlEncode
Public method Static member WriteHtmlEncodeAllowSimpleTextFormatting
Public method Static member WriteHtmlUrlAttributeEncode
Public method Static member WriteNoEncode
Public method Static member WriteUrlKeyValueEncode(String, Page)
Public method Static member WriteUrlKeyValueEncode(String, String, Page)
Public method Static member WriteUrlPathEncode(String, Boolean, Page)
Public method Static member WriteUrlPathEncode(String, Boolean, Boolean, Page)
Top
Show:
© 2014 Microsoft