Editatu

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

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

Name Description
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.

ResponseUri

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

Methods

Name Description
Close()

Closes the stream for this request.

GetResponseStream()

Gets the response stream that is contained in the PackWebResponse.

Applies to

See also