.NET Framework Class Library
PackWebResponse Class

Represents a response of a PackWebRequest.

Inheritance Hierarchy

Namespace:   System.IO.Packaging
Assembly:  PresentationCore (in PresentationCore.dll)
Public NotInheritable Class PackWebResponse _
	Inherits [%$TOPIC/ms582394_en-us_VS_110_3_0_0_0_0%]
public sealed class PackWebResponse : [%$TOPIC/ms582394_en-us_VS_110_3_0_1_0_0%]
public ref class PackWebResponse sealed : public [%$TOPIC/ms582394_en-us_VS_110_3_0_2_0_0%]
type PackWebResponse =  
        inherit [%$TOPIC/ms582394_en-us_VS_110_3_0_3_0_1%] 

The PackWebResponse type exposes the following members.

Public property ContentLengthGets the content length of the response. (Overrides WebResponseContentLength.)
Public property ContentTypeGets the Multipurpose Internet Mail Extensions (MIME) content type of the response stream's content.  (Overrides WebResponseContentType.)
Public property HeadersGets the collection of Web Headers for this response. (Overrides WebResponseHeaders.)
Public property InnerResponseGets the inner WebResponse object for the response.
Public property IsFromCacheGets a value indicating whether the response is from the package cache or from a Web request. (Overrides WebResponseIsFromCache.)
Public property IsMutuallyAuthenticatedGets a Boolean value that indicates whether mutual authentication occurred. (Inherited from WebResponse.)
Public property ResponseUriGets the uniform resource identifier (URI) of the response.  (Overrides WebResponseResponseUri.)
Public property SupportsHeadersGets a value that indicates if headers are supported. (Inherited from WebResponse.)
Public method CloseCloses the stream for this request. (Overrides WebResponseClose.)
Public method CreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method DisposeReleases the unmanaged resources used by the WebResponse object. (Inherited from WebResponse.)
Public method Equals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCodeServes as the default hash function. (Inherited from Object.)
Public method GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetResponseStreamGets the response stream that is contained in the PackWebResponse. (Overrides WebResponseGetResponseStream.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Explicit Interface Implementations
Explicit interface implemetation Private method IDisposableDisposeInfrastructure. When overridden in a derived class, releases all resources used by the WebResponse. (Inherited from WebResponse.)
Explicit interface implemetation Private method ISerializableGetObjectDataInfrastructure. Populates a SerializationInfo instance with the data that is needed to serialize WebResponse. (Inherited from WebResponse.)

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.

Version Information

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.