Export (0) Print
Expand All

HttpResponse Methods

The HttpResponse type exposes the following members.

  NameDescription
Public method AddCacheDependency Associates a set of cache dependencies with the response to facilitate invalidation of the response if it is stored in the output cache and the specified dependencies change.
Public method AddCacheItemDependencies(ArrayList) Makes the validity of a cached response dependent on other items in the cache.
Public method AddCacheItemDependencies(String[]) Makes the validity of a cached item dependent on another item in the cache.
Public method AddCacheItemDependency Makes the validity of a cached response dependent on another item in the cache.
Public method AddFileDependencies(ArrayList) Adds a group of file names to the collection of file names on which the current response is dependent.
Public method AddFileDependencies(String[]) Adds an array of file names to the collection of file names on which the current response is dependent.
Public method AddFileDependency Adds a single file name to the collection of file names on which the current response is dependent.
Public method AddHeader Adds an HTTP header to the output stream. AddHeader is provided for compatibility with earlier versions of ASP.
Public method AppendCookie Infrastructure. Adds an HTTP cookie to the intrinsic cookie collection.
Public method AppendHeader Adds an HTTP header to the output stream.
Public method AppendToLog Adds custom log information to the Internet Information Services (IIS) log file.
Public method ApplyAppPathModifier Adds a session ID to the virtual path if the session is using Cookieless session state and returns the combined path. If Cookieless session state is not used, ApplyAppPathModifier returns the original virtual path.
Public method BinaryWrite Writes a string of binary characters to the HTTP output stream.
Public method Clear Clears all content output from the buffer stream.
Public method ClearContent Clears all content output from the buffer stream.
Public method ClearHeaders Clears all headers from the buffer stream.
Public method Close Closes the socket connection to a client.
Public method DisableKernelCache Disables kernel caching for the current response.
Public method End Sends all currently buffered output to the client, stops execution of the page, and raises the EndRequest event.
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 Flush Sends all currently buffered output to the client.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Pics Appends a HTTP PICS-Label header to the output stream.
Public method Redirect(String) Redirects a request to a new URL and specifies the new URL.
Public method Redirect(String, Boolean) Redirects a client to a new URL. Specifies the new URL and whether execution of the current page should terminate.
Public method RedirectPermanent(String) Performs a permanent redirection from the requested URL to the specified URL.
Public method RedirectPermanent(String, Boolean) Performs a permanent redirection from the requested URL to the specified URL, and provides the option to complete the response.
Public method RedirectToRoute(Object) Redirects a request to a new URL by using route parameter values.
Public method RedirectToRoute(RouteValueDictionary) Redirects a request to a new URL by using route parameter values.
Public method RedirectToRoute(String) Redirects a request to a new URL by using a route name.
Public method RedirectToRoute(String, Object) Redirects a request to a new URL by using route parameter values and a route name.
Public method RedirectToRoute(String, RouteValueDictionary) Redirects a request to a new URL by using route parameter values and a route name.
Public method RedirectToRoutePermanent(Object) Performs a permanent redirection from a requested URL to a new URL by using route parameter values.
Public method RedirectToRoutePermanent(RouteValueDictionary) Performs a permanent redirection from a requested URL to a new URL by using route parameter values.
Public method RedirectToRoutePermanent(String) Performs a permanent redirection from a requested URL to a new URL by using a route name.
Public method RedirectToRoutePermanent(String, Object) Performs a permanent redirection from a requested URL to a new URL by using the route parameter values and the name of the route that correspond to the new URL.
Public method RedirectToRoutePermanent(String, RouteValueDictionary) Performs a permanent redirection from a requested URL to a new URL by using route parameter values and a route name.
Public method Static member RemoveOutputCacheItem(String) Removes from the cache all cached items that are associated with the default output-cache provider. This method is static.
Public method Static member RemoveOutputCacheItem(String, String) Uses the specified output-cache provider to remove all output-cache items that are associated with the specified path.
Public method SetCookie Infrastructure. Updates an existing cookie in the cookie collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransmitFile(String) Writes the specified file directly to an HTTP response output stream, without buffering it in memory.
Public method TransmitFile(String, Int64, Int64) Writes the specified part of a file directly to an HTTP response output stream without buffering it in memory.
Public method Write(Char) Writes a character to an HTTP response output stream.
Public method Write(Object) Writes an Object to an HTTP response stream.
Public method Write(String) Writes a string to an HTTP response output stream.
Public method Write(Char[], Int32, Int32) Writes an array of characters to an HTTP response output stream.
Public method WriteFile(String) Writes the contents of the specified file directly to an HTTP response output stream as a file block.
Public method WriteFile(String, Boolean) Writes the contents of the specified file directly to an HTTP response output stream as a memory block.
Public method WriteFile(IntPtr, Int64, Int64) Writes the specified file directly to an HTTP response output stream.
Public method WriteFile(String, Int64, Int64) Writes the specified file directly to an HTTP response output stream.
Public method WriteSubstitution Allows insertion of response substitution blocks into the response, which allows dynamic generation of specified response regions for output cached responses.
Top

Community Additions

ADD
Show:
© 2014 Microsoft