This documentation is archived and is not being maintained.
HttpResponse Methods
Visual Studio 2008
The HttpResponse type exposes the following members.
| Name | Description | |
|---|---|---|
|
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. |
|
AddCacheItemDependencies | Overloaded. Makes the validity of a cached response dependent on other items in the cache. |
|
AddCacheItemDependency | Makes the validity of a cached response dependent on another item in the cache. |
|
AddFileDependencies | Overloaded. Makes the validity of a cached response dependent on another item in the cache. |
|
AddFileDependency | Adds a single file name to the collection of file names on which the current response is dependent. |
|
AddHeader | Adds an HTTP header to the output stream. AddHeader is provided for compatibility with earlier versions of ASP. |
|
AppendCookie | Infrastructure. Adds an HTTP cookie to the intrinsic cookie collection. |
|
AppendHeader | Adds an HTTP header to the output stream. |
|
AppendToLog | Adds custom log information to the Internet Information Services (IIS) log file. |
|
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. |
|
BinaryWrite | Writes a string of binary characters to the HTTP output stream. |
|
Clear | Clears all content output from the buffer stream. |
|
ClearContent | Clears all content output from the buffer stream. |
|
ClearHeaders | Clears all headers from the buffer stream. |
|
Close | Closes the socket connection to a client. |
|
DisableKernelCache | Disables kernel caching for the current response. |
|
End | Sends all currently buffered output to the client, stops execution of the page, and raises the EndRequest event. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Flush | Sends all currently buffered output to the client. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Pics | Appends a HTTP PICS-Label header to the output stream. |
|
Redirect | Overloaded. Redirects a client to a new URL. |
|
RemoveOutputCacheItem | Removes from the cache all cached items that are associated with the specified path. This method is static. |
|
SetCookie | Infrastructure. Updates an existing cookie in the cookie collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TransmitFile | Overloaded. Writes the specified file directly to an HTTP response output stream without buffering it in memory. |
|
Write | Overloaded. Writes information to an HTTP response output stream. |
|
WriteFile | Overloaded. Writes the specified file directly to an HTTP response output stream. |
|
WriteSubstitution | Allows insertion of response substitution blocks into the response, which allows dynamic generation of specified response regions for output cached responses. |
Show: