Muokkaa

Jaa


PackWebResponse Class

Definition

Represents a response of a PackWebRequest.

public ref class PackWebResponse sealed : System::Net::WebResponse
public sealed class PackWebResponse : System.Net.WebResponse
type PackWebResponse = class
    inherit WebResponse
Public NotInheritable Class PackWebResponse
Inherits WebResponse
Inheritance
PackWebResponse
Inheritance

Remarks

When you use the pack URI protocol, you can reference a package and its part elements either locally from inside a package or externally from a Web source.

For the pack URI protocol, the forward-slash characters (//) of an embedded uniform resource identifier (URI) are represented by commas (,,). For example: pack://http:,,www.adatum.com,folder,file.package/images/picture1.jpg references the file /images/picture1.jpg that is contained in http://www.adatum.com/folder/file.package.

Properties

ContentLength

Gets the content length of the response.

ContentType

Gets the Multipurpose Internet Mail Extensions (MIME) content type of the response stream's content.

Headers

Gets the collection of Web Headers for this response.

InnerResponse

Gets the inner WebResponse object for the response.

IsFromCache

Gets a value indicating whether the response is from the package cache or from a Web request.

IsMutuallyAuthenticated

Gets a Boolean value that indicates whether mutual authentication occurred.

(Inherited from WebResponse)
ResponseUri

Gets the uniform resource identifier (URI) of the response.

SupportsHeaders

Gets a value that indicates if headers are supported.

(Inherited from WebResponse)

Methods

Close()

Closes the stream for this request.

CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Dispose()

Releases the unmanaged resources used by the WebResponse object.

(Inherited from WebResponse)
Dispose(Boolean)

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

(Inherited from WebResponse)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService()
Obsolete.

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

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

(Inherited from WebResponse)
GetResponseStream()

Gets the response stream that is contained in the PackWebResponse.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService()
Obsolete.

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose()

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

(Inherited from WebResponse)
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

Populates a SerializationInfo instance with the data that is needed to serialize WebResponse.

(Inherited from WebResponse)

Applies to

See also