blob: e3b2285e88fb6c886f2bc10619636be92ee900fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
//
// System.Net.WebResponse
//
// Author:
// Lawrence Pit (loz@cable.a2000.nl)
//
using System;
using System.IO;
using System.Runtime.Serialization;
namespace System.Net
{
[Serializable]
public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable
{
// Constructors
protected WebResponse () { }
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 ();
}
}
}
|