Export (0) Print
Expand All

SPHttpUtility Methods

Windows SharePoint Services 3

The SPHttpUtility type exposes the following members.

  NameDescription
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 Windows SharePoint Services rich text field to plain text.
Public method Static member EcmaScriptStringLiteralEncode(String) Returns an encoded version of the specified Ecma script.
Public method Static member EcmaScriptStringLiteralEncode(String, TextWriter) Returns an encoded version of the specified Ecma script 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 Returns a decoded version of the specified encoded HTML string.
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) Returns the specified integer as a string for use as text between HTML tags, or as 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 for use as text between 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) Returns the specified string object as an unencoded string.
Public method Static member NoEncode(String) Returns the specified string as an unencoded string.
Public method Static member NoEncode(Object, TextWriter) Returns 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 UrlKeyValueDecode Decodes the specified encoded URL query string key or value.
Public method Static member UrlKeyValueEncode(Guid) Encodes the URL query string key or value with the specified GUID.
Public method Static member UrlKeyValueEncode(Int32) Returns an encoded string version of the specified URL query integer key or value.
Public method Static member UrlKeyValueEncode(String) Encodes the specified URL query string key or value.
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 the specified URL query string key and value.
Public method Static member UrlKeyValueEncode(String, String, TextWriter) Encodes the specified URL query string key and value, and 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, TextWriter) Encodes the specified path part of a URL for HTTP transmission, and appends it to the specified output stream.
Top

Community Additions

ADD
Show:
© 2015 Microsoft