System.Web.HttpResponse: Method Members

The methods of System.Web.HttpResponse are listed below. For a list of all members, see the HttpResponse Members list.

See Also: Inherited members from System.Object

Public Methods

AddCacheDependency(System.Web.Caching.CacheDependency[])

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(ArrayList)

Makes the validity of a cached response dependent on other items in the cache.

AddCacheItemDependencies(string[])

Makes the validity of a cached item dependent on another item in the cache.

AddCacheItemDependency(string)

Makes the validity of a cached response dependent on another item in the cache.

AddFileDependencies(ArrayList)

Adds a group of file names to the collection of file names on which the current response is dependent.

AddFileDependencies(string[])

Adds an array of file names to the collection of file names on which the current response is dependent.

AddFileDependency(string)

Adds a single file name to the collection of file names on which the current response is dependent.

AddHeader(string, string)

Adds an HTTP header to the output stream. HttpResponse.AddHeader(string, string) is provided for compatibility with earlier versions of ASP.

AppendCookie(HttpCookie)

Adds an HTTP cookie to the intrinsic cookie collection.

AppendHeader(string, string)

Adds an HTTP header to the output stream.

AppendToLog(string)

Adds custom log information to the Internet Information Services (IIS) log file.

ApplyAppPathModifier(string) : string

Adds a session ID to the virtual path if the session is using System.Web.Configuration.SessionStateSection.Cookieless session state and returns the combined path. If System.Web.Configuration.SessionStateSection.Cookieless session state is not used, HttpResponse.ApplyAppPathModifier(string) returns the original virtual path.

BinaryWrite(byte[])

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.

End()

Sends all currently buffered output to the client, stops execution of the page, and raises the HttpApplication.EndRequest event.

Flush()

Sends all currently buffered output to the client.

Pics(string)

Appends a HTTP PICS-Label header to the output stream.

Redirect(string)

Redirects a request to a new URL and specifies the new URL.

Redirect(string, bool)

Redirects a client to a new URL. Specifies the new URL and whether execution of the current page should terminate.

static
RemoveOutputCacheItem(string)

Removes from the cache all cached items that are associated with the default output-cache provider. This method is static.

SetCookie(HttpCookie)

Updates an existing cookie in the cookie collection.

TransmitFile(string)

Writes the specified file directly to an HTTP response output stream, without buffering it in memory.

Write(char)

Writes a character to an HTTP response output stream.

Write(object)

Writes an object to an HTTP response stream.

Write(string)

Writes a string to an HTTP response output stream.

Write(char[], int, int)

Writes an array of characters to an HTTP response output stream.

WriteFile(string)

Writes the contents of the specified file directly to an HTTP response output stream as a file block.

WriteFile(string, bool)

Writes the contents of the specified file directly to an HTTP response output stream as a memory block.

WriteFile(IntPtr, long, long)

Writes the specified file directly to an HTTP response output stream.

WriteFile(string, long, long)

Writes the specified file directly to an HTTP response output stream.

WriteSubstitution(HttpResponseSubstitutionCallback)

Allows insertion of response substitution blocks into the response, which allows dynamic generation of specified response regions for output cached responses.