SPHttpUtility Methods

Include Protected Members
Include Inherited Members

The SPHttpUtility type exposes the following members.

Methods

Name Description
AddQuote(String) Encloses the specified string in quotation marks.
AddQuote(String, Char) Encloses the specified string in quotation marks using the specified character.
AddQuote(String, TextWriter) Encloses the specified string in quotation marks and appends the output to the specified output stream.
AddQuote(String, Char, TextWriter) Encloses the specified string in quotation marks using the specified character and appends it to the specified output stream.
ConvertSimpleHtmlToText Converts an HTML string from a Windows SharePoint Services rich text field to plain text.
EcmaScriptStringLiteralEncode(String) Returns an encoded version of the specified Ecma script.
EcmaScriptStringLiteralEncode(String, TextWriter) Returns an encoded version of the specified Ecma script and appends it to the specified output stream.
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
HtmlDecode Returns a decoded version of the specified encoded HTML string.
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.
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.
HtmlEncode(String) Encodes the specified string for use as text between HTML tags, or as an attribute value inside an HTML tag.
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.
HtmlEncodeAllowSimpleTextFormatting(String) Encodes the specified string for use as text between HTML tags, preserving spaces in the original string and allowing simple text formatting.
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.
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.
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.
MemberwiseClone (Inherited from Object.)
NoEncode(Object) Returns the specified string object as an unencoded string.
NoEncode(String) Returns the specified string as an unencoded string.
NoEncode(Object, TextWriter) Returns the specified string object as an unencoded string, and appends it to the specified output stream.
ToString (Inherited from Object.)
UrlKeyValueDecode Decodes the specified encoded URL query string key or value.
UrlKeyValueEncode(Guid) Encodes the URL query string key or value with the specified GUID.
UrlKeyValueEncode(Int32) Returns an encoded string version of the specified URL query integer key or value.
UrlKeyValueEncode(String) Encodes the specified URL query string key or value.
UrlKeyValueEncode(String, TextWriter) Encodes the specified URL query string key or value, and appends it to the specified output stream.
UrlKeyValueEncode(String, String) Encodes the specified URL query string key and value.
UrlKeyValueEncode(String, String, TextWriter) Encodes the specified URL query string key and value, and appends it to the specified output stream.
UrlPathDecode Decodes the specified encoded path part of a URL.
UrlPathEncode(String, Boolean) Encodes the specified path part of a URL for HTTP transmission.
UrlPathEncode(String, Boolean, Boolean) Encodes the specified path part of a URL for HTTP transmission.
UrlPathEncode(String, Boolean, TextWriter) Encodes the specified path part of a URL for HTTP transmission, and appends it to the specified output stream.
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

SPHttpUtility Class

Microsoft.SharePoint.Utilities Namespace