Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PackWebResponse Class

PackWebResponse Class

Represents a response of a PackWebRequest.


Namespace:  System.IO.Packaging
Assembly:  PresentationCore (in PresentationCore.dll)

type PackWebResponse =  
        inherit WebResponse 

The PackWebResponse type exposes the following members.

Public propertyContentLengthGets the content length of the response. (Overrides WebResponse.ContentLength.)
Public propertyContentTypeGets the Multipurpose Internet Mail Extensions (MIME) content type of the response stream's content.  (Overrides WebResponse.ContentType.)
Public propertyHeadersGets the collection of Web Headers for this response. (Overrides WebResponse.Headers.)
Public propertyInnerResponseGets the inner WebResponse object for the response.
Public propertyIsFromCacheGets a value indicating whether the response is from the package cache or from a Web request. (Overrides WebResponse.IsFromCache.)
Public propertyIsMutuallyAuthenticatedGets a Boolean value that indicates whether mutual authentication occurred. (Inherited from WebResponse.)
Public propertyResponseUriGets the uniform resource identifier (URI) of the response.  (Overrides WebResponse.ResponseUri.)
Public propertySupportsHeadersGets a value that indicates if headers are supported. (Inherited from WebResponse.)

Public methodCloseCloses the stream for this request. (Overrides WebResponse.Close().)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDispose()Releases the unmanaged resources used by the WebResponse object. (Inherited from WebResponse.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetResponseStreamGets the response stream that is contained in the PackWebResponse. (Overrides WebResponse.GetResponseStream().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Explicit interface implemetationPrivate methodIDisposable.DisposeInfrastructure. When overridden in a derived class, releases all resources used by the WebResponse. (Inherited from WebResponse.)
Explicit interface implemetationPrivate methodISerializable.GetObjectDataInfrastructure. 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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