Export (0) Print
Expand All

AntiXssEncoder Methods

.NET Framework 4.5

The AntiXssEncoder type exposes the following members.

  Name Description
Public method Static member CssEncode Encodes the specified string for use in cascading style sheets (CSS).
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method HeaderNameValueEncode Encodes a header name and value into a string that can be used as an HTTP header. (Inherited from HttpEncoder.)
Protected method HtmlAttributeEncode Encodes and outputs the specified string for use in an HTML attribute. (Overrides HttpEncoder.HtmlAttributeEncode(String, TextWriter).)
Protected method HtmlDecode Decodes a value from an HTML-encoded string. (Inherited from HttpEncoder.)
Public method Static member HtmlEncode(String, Boolean) Encodes the specified string for use as text in HTML markup and optionally specifies whether to use HTML 4.0 named entities.
Protected method HtmlEncode(String, TextWriter) Encodes the specified string for use as text in HTML markup and outputs the string by using the specified text writer. (Overrides HttpEncoder.HtmlEncode(String, TextWriter).)
Public method Static member HtmlFormUrlEncode(String) Encodes the specified string for use in form submissions whose MIME type is "application/x-www-form-urlencoded".
Public method Static member HtmlFormUrlEncode(String, Int32) Encodes the specified string for use in form submissions whose MIME type is "application/x-www-form-urlencoded" by using the specified code page.
Public method Static member HtmlFormUrlEncode(String, Encoding) Encodes the specified string for form submissions whose MIME type is "application/x-www-form-urlencoded" by using the specified character encoding type.
Protected method JavaScriptStringEncode Encodes a string. (Inherited from HttpEncoder.)
Public method Static member MarkAsSafe Marks characters from the specified Unicode code charts as safe.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Static member UrlEncode(String) Encodes the specified string for use in a URL.
Public method Static member UrlEncode(String, Int32) Encodes the specified string for use in a URL by using the specified code page.
Public method Static member UrlEncode(String, Encoding) Encodes the specified string for use in a URL by using the specified character encoding type.
Protected method UrlEncode(Byte[], Int32, Int32) Encodes the specified byte array for use in a URL, starting at the specified offset in the byte array and encoding the specified number of bytes. (Overrides HttpEncoder.UrlEncode(Byte[], Int32, Int32).)
Protected method UrlPathEncode Encodes path strings for use in a URL. (Overrides HttpEncoder.UrlPathEncode(String).)
Public method Static member XmlAttributeEncode Encodes the specified string for use in XML attributes.
Public method Static member XmlEncode Encodes the specified string for use in XML attributes.
Top
Show:
© 2014 Microsoft