| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //
- // System.Net.WebResponse
- //
- // Author:
- // Lawrence Pit ([email protected])
- //
- using System;
- using System.IO;
- using System.Runtime.Serialization;
- namespace System.Net
- {
- [Serializable]
- public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable
- {
- // Constructors
-
- protected WebResponse ()
- {
- throw new NotSupportedException ();
- }
-
- protected WebResponse (SerializationInfo serializationInfo, StreamingContext streamingContext)
- {
- throw new NotSupportedException ();
- }
-
- // Properties
-
- public virtual long ContentLength {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual string ContentType {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual WebHeaderCollection Headers {
- get { throw new NotSupportedException (); }
- }
-
- public virtual Uri ResponseUri {
- get { throw new NotSupportedException (); }
- }
- // Methods
-
- public virtual void Close()
- {
- throw new NotSupportedException ();
- }
-
- public virtual Stream GetResponseStream()
- {
- throw new NotSupportedException ();
- }
-
- void IDisposable.Dispose()
- {
- Close ();
- }
-
- void ISerializable.GetObjectData (SerializationInfo serializationInfo,
- StreamingContext streamingContext)
- {
- throw new NotSupportedException ();
- }
- }
- }
|