System.Net.WebResponse Members

The members of System.Net.WebResponse are listed below.

See Also: Inherited members from System.MarshalByRefObject

Protected Constructors

Public Properties

ContentLengthlong.

When overridden in a descendant class, gets or sets the content length of data being received.

ContentTypestring.

When overridden in a derived class, gets or sets the content type of the data being received.

[read-only]
HeadersWebHeaderCollection.

When overridden in a derived class, gets a collection of header name-value pairs associated with this request.

[read-only]
IsFromCachebool.

Gets a bool value that indicates whether this response was obtained from the cache.

[read-only]
IsMutuallyAuthenticatedbool.

Gets a bool value that indicates whether mutual authentication occurred.

[read-only]
ResponseUriUri.

When overridden in a derived class, gets the URI of the Internet resource that actually responded to the request.

[read-only]
SupportsHeadersbool.

Gets a value that indicates if headers are supported.

Public Methods

Close()

When overridden by a descendant class, closes the response stream.

Dispose()

Releases the unmanaged resources used by the System.Net.WebResponse object.

GetResponseStream() : System.IO.Stream

When overridden in a descendant class, returns the data stream from the Internet resource.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Net.WebResponse object, and optionally disposes of the managed resources.

GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Populates a System.Runtime.Serialization.SerializationInfo with the data that is needed to serialize the target object.

Explicitly Implemented Interface Members

IDisposable.Dispose

When overridden in a derived class, releases all resources used by the System.Net.WebResponse.

System.Runtime.Serialization.ISerializable.GetObjectData

Populates a System.Runtime.Serialization.SerializationInfo instance with the data that is needed to serialize System.Net.WebResponse.