WebResponse

WebResponseCF 1.0, ECMA 1.0, serializable, marshal by reference, disposable

System.Net (system.dll)abstract class

This class represents a response received from a WebRequest. A response consists of headers (stored as key/value pairs in the Headers property) and a response body. You can obtain the response body as a System.IO.Stream using the GetResponseStream( ) method.

When you are finished with the response, call its Close( ) method; this releases any open resources still held by the WebResponse without having to wait for garbage collection to do so (which could take longer than desired).

public abstract class WebResponse : MarshalByRefObject, System.Runtime.Serialization.ISerializable, 
     IDisposable {
// Protected Constructors
   protected WebResponse( );
   protected WebResponse(System.Runtime.Serialization.SerializationInfo serializationInfo,
       System.Runtime.Serialization.StreamingContext streamingContext);
// Public Instance Properties
   public virtual long ContentLength{set; get; }
   public virtual string ContentType{set; get; }
   public virtual WebHeaderCollection Headers{get; }
   public virtual Uri ResponseUri{get; }
// Public Instance Methods
   public virtual void Close( );
   public virtual Stream GetResponseStream( );
}

Hierarchy

System.Object System.MarshalByRefObject WebResponse(System.Runtime.Serialization.ISerializable, System.IDisposable)

Subclasses

FileWebResponse, HttpWebResponse

Returned By

WebException.Response, WebRequest.{EndGetResponse( ), GetResponse( )}

Passed To

WebException.WebException( )



    Part II: Programming with the .NET Framework
    Part IV: API Quick Reference
    Chapter 26. System
     
    ASPTreeView.com
     
    Evaluation has їЪГАЩёСё»expired.
    Info...