|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Classe HttpResponse
Namespace: System.Web
Assembly: System.Web (em System.Web.dll)
O tipo HttpResponse expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() | HttpResponse | Infraestrutura. |
| Nome | Descrição | |
|---|---|---|
![]() | Buffer | |
![]() | BufferOutput | |
![]() | Cache | |
![]() | CacheControl | |
![]() | Charset | |
![]() | ClientDisconnectedToken | |
![]() | ContentEncoding | |
![]() | ContentType | |
![]() | Cookies | |
![]() | Expires | |
![]() | ExpiresAbsolute | |
![]() | Filter | |
![]() | HeaderEncoding | |
![]() | Headers | |
![]() | IsClientConnected | |
![]() | IsRequestBeingRedirected | |
![]() | Output | |
![]() | OutputStream | |
![]() | RedirectLocation | |
![]() | Status | |
![]() | StatusCode | |
![]() | StatusDescription | |
![]() | SubStatusCode | |
![]() | SupportsAsyncFlush | |
![]() | SuppressContent | |
![]() | SuppressFormsAuthenticationRedirect | |
![]() | TrySkipIisCustomErrors |
| Nome | Descrição | |
|---|---|---|
![]() | AddCacheDependency | |
![]() | AddCacheItemDependencies(ArrayList) | |
![]() | AddCacheItemDependencies(String[]) | |
![]() | AddCacheItemDependency | |
![]() | AddFileDependencies(ArrayList) | |
![]() | AddFileDependencies(String[]) | |
![]() | AddFileDependency | |
![]() | AddHeader | |
![]() | AppendCookie | Infraestrutura. |
![]() | AppendHeader | |
![]() | AppendToLog | |
![]() | ApplyAppPathModifier | |
![]() | BeginFlush | |
![]() | BinaryWrite | |
![]() | Clear | |
![]() | ClearContent | |
![]() | ClearHeaders | |
![]() | Close | |
![]() | DisableKernelCache | |
![]() | DisableUserCache | |
![]() | End | |
![]() | EndFlush | |
![]() | Equals(Object) | |
![]() | Flush | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | Pics | |
![]() | Redirect(String) | |
![]() | Redirect(String, Boolean) | |
![]() | RedirectPermanent(String) | |
![]() | RedirectPermanent(String, Boolean) | |
![]() | RedirectToRoute(Object) | |
![]() | RedirectToRoute(RouteValueDictionary) | |
![]() | RedirectToRoute(String) | |
![]() | RedirectToRoute(String, Object) | |
![]() | RedirectToRoute(String, RouteValueDictionary) | |
![]() | RedirectToRoutePermanent(Object) | |
![]() | RedirectToRoutePermanent(RouteValueDictionary) | |
![]() | RedirectToRoutePermanent(String) | |
![]() | RedirectToRoutePermanent(String, Object) | |
![]() | RedirectToRoutePermanent(String, RouteValueDictionary) | |
![]() ![]() | RemoveOutputCacheItem(String) | |
![]() ![]() | RemoveOutputCacheItem(String, String) | |
![]() | SetCookie | Infraestrutura. |
![]() | ToString | |
![]() | TransmitFile(String) | |
![]() | TransmitFile(String, Int64, Int64) | |
![]() | Write(Char) | |
![]() | Write(Object) | |
![]() | Write(String) | |
![]() | Write(Char[], Int32, Int32) | |
![]() | WriteFile(String) | |
![]() | WriteFile(String, Boolean) | |
![]() | WriteFile(IntPtr, Int64, Int64) | |
![]() | WriteFile(String, Int64, Int64) | |
![]() | WriteSubstitution |
| Topic | Location |
|---|---|
| Como: PASS Values Between Páginas Web ASP.NET | dv_aspnetcon |
| Como: Passar valores entre páginas da Web do ASP.NET | Building ASP .NET Web Applications in Visual Studio |
| Como: Passar valores entre páginas da Web ASP.NET | dv_vwdcon |
Observação |
|---|
<%@ Page Language="C#" %> <%@ import Namespace="System.Drawing" %> <%@ import Namespace="System.Drawing.Imaging" %> <%@ import Namespace="System.Drawing.Drawing2D" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> private void Page_Load(object sender, EventArgs e) { // Set the page's content type to JPEG files // and clears all content output from the buffer stream. Response.ContentType = "image/jpeg"; Response.Clear(); // Buffer response so that page is sent // after processing is complete. Response.BufferOutput = true; // Create a font style. Font rectangleFont = new Font( "Arial", 10, FontStyle.Bold); // Create integer variables. int height = 100; int width = 200; // Create a random number generator and create // variable values based on it. Random r = new Random(); int x = r.Next(75); int a = r.Next(155); int x1 = r.Next(100); // Create a bitmap and use it to create a // Graphics object. Bitmap bmp = new Bitmap( width, height, PixelFormat.Format24bppRgb); Graphics g = Graphics.FromImage(bmp); g.SmoothingMode = SmoothingMode.AntiAlias; g.Clear(Color.LightGray); // Use the Graphics object to draw three rectangles. g.DrawRectangle(Pens.White, 1, 1, width-3, height-3); g.DrawRectangle(Pens.Aquamarine, 2, 2, width-3, height-3); g.DrawRectangle(Pens.Black, 0, 0, width, height); // Use the Graphics object to write a string // on the rectangles. g.DrawString( "ASP.NET Samples", rectangleFont, SystemBrushes.WindowText, new PointF(10, 40)); // Apply color to two of the rectangles. g.FillRectangle( new SolidBrush( Color.FromArgb(a, 255, 128, 255)), x, 20, 100, 50); g.FillRectangle( new LinearGradientBrush( new Point(x, 10), new Point(x1 + 75, 50 + 30), Color.FromArgb(128, 0, 0, 128), Color.FromArgb(255, 255, 255, 240)), x1, 50, 75, 30); // Save the bitmap to the response stream and // convert it to JPEG format. bmp.Save(Response.OutputStream, ImageFormat.Jpeg); // Release memory used by the Graphics object // and the bitmap. g.Dispose(); bmp.Dispose(); // Send the output to the client. Response.Flush(); } </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>ASP.NET Example</title> </head> <body> <form id="form1" runat="server"> </form> </body> </html>
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.
