Export (0) Print
Expand All

ResponseExtensions Class

Defines extension methods for the HttpResponseBase base class.

System.Object
  System.Web.WebPages.ResponseExtensions

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

public static class ResponseExtensions

The ResponseExtensions type exposes the following members.

  NameDescription
Public methodStatic memberOutputCacheConfigures the cache policy of an HTTP response instance.
Public methodStatic memberSetStatus(HttpResponseBase, Int32)Sets the HTTP status code of an HTTP response using the specified integer value.
Public methodStatic memberSetStatus(HttpResponseBase, HttpStatusCode)Sets the HTTP status code of an HTTP response using the specified HTTP status code enumeration value.
Public methodStatic memberWriteBinary(HttpResponseBase, Byte[])Writes a sequence of bytes that represent binary content of an unspecified type to the output stream of an HTTP response.
Public methodStatic memberWriteBinary(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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft