ResponseExtensions Class
Defines extension methods for the HttpResponseBase base class.
Inheritance Hierarchy
System.Object
System.Web.WebPages.ResponseExtensions
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ResponseExtensions
'Usage
public static class ResponseExtensions
[ExtensionAttribute]
public ref class ResponseExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ResponseExtensions = class end
public final class ResponseExtensions
The ResponseExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
OutputCache | Configures the cache policy of an HTTP response instance. | |
SetStatus(HttpResponseBase, Int32) | Sets the HTTP status code of an HTTP response using the specified integer value. | |
SetStatus(HttpResponseBase, HttpStatusCode) | Sets the HTTP status code of an HTTP response using the specified HTTP status code enumeration value. | |
WriteBinary(HttpResponseBase, Byte[]) | Writes a sequence of bytes that represent binary content of an unspecified type to the output stream of an HTTP response. | |
WriteBinary(HttpResponseBase, Byte[], String) | Writes a sequence of bytes that represent binary content of the specified MIME type to the output stream of an HTTP response. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.