.NET Framework Class Library
PackWebRequest Class

Makes a request to an entire PackagePart or to a PackagePart in a package, identified by a pack URI.

Inheritance Hierarchy
SystemObject
   SystemMarshalByRefObject
     System.NetWebRequest
      System.IO.PackagingPackWebRequest

Namespace:   System.IO.Packaging
Assembly:  PresentationCore (in PresentationCore.dll)
Syntax
Public NotInheritable Class PackWebRequest _
	Inherits [%$TOPIC/ms582387_en-us_VS_110_4_0_0_0_0%]
public sealed class PackWebRequest : [%$TOPIC/ms582387_en-us_VS_110_4_0_1_0_0%]
public ref class PackWebRequest sealed : public [%$TOPIC/ms582387_en-us_VS_110_4_0_2_0_0%]
[<[%$TOPIC/ms582387_en-us_VS_110_4_0_3_0_0%]>]
type PackWebRequest =  
    class 
        inherit [%$TOPIC/ms582387_en-us_VS_110_4_0_3_0_1%] 
    end

The PackWebRequest type exposes the following members.

Properties
  NameDescription
Public property AuthenticationLevelGets or sets values indicating the level of authentication and impersonation used for this request. (Inherited from WebRequest.)
Public property CachePolicyGets or sets the RequestCachePolicy. (Overrides WebRequestCachePolicy.)
Public property ConnectionGroupNameGets or sets the name of the connection group. (Overrides WebRequestConnectionGroupName.)
Public property ContentLengthGets or sets the Content-length HTTP header. (Overrides WebRequestContentLength.)
Public property ContentTypeGets or sets the Content-type HTTP header. (Overrides WebRequestContentType.)
Public property CreatorInstanceObsolete. When overridden in a descendant class, gets the factory object derived from the IWebRequestCreate class used to create the WebRequest instantiated for making the request to the specified URI. (Inherited from WebRequest.)
Public property CredentialsGets or sets the authentication credentials. (Overrides WebRequestCredentials.)
Public property HeadersGets or sets the collection of header name/value pairs associated with the request. (Overrides WebRequestHeaders.)
Public property ImpersonationLevelGets or sets the impersonation level for the current request. (Inherited from WebRequest.)
Public property MethodGets or sets the protocol method to use with the pack URI request. (Overrides WebRequestMethod.)
Public property PreAuthenticateGets or sets a value that indicates whether to preauthenticate the request. (Overrides WebRequestPreAuthenticate.)
Public property ProxyGets or sets the network proxy for Internet access. (Overrides WebRequestProxy.)
Public property RequestUriGets the URI of the resource associated with the request. (Overrides WebRequestRequestUri.)
Public property TimeoutGets or sets the length of time before the request times out. (Overrides WebRequestTimeout.)
Public property UseDefaultCredentialsGets or sets the default authentication credentials. (Overrides WebRequestUseDefaultCredentials.)
Top
Methods
  NameDescription
Public method AbortAborts the Request (Inherited from WebRequest.)
Public method BeginGetRequestStreamWhen overridden in a descendant class, provides an asynchronous version of the GetRequestStream method. (Inherited from WebRequest.)
Public method BeginGetResponseWhen overridden in a descendant class, begins an asynchronous request for an Internet resource. (Inherited from WebRequest.)
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 EndGetRequestStreamWhen overridden in a descendant class, returns a Stream for writing data to the Internet resource. (Inherited from WebRequest.)
Public method EndGetResponseWhen overridden in a descendant class, returns a WebResponse. (Inherited from WebRequest.)
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 GetInnerRequestGets the inner WebRequest.
Public method GetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetRequestStreamDo not use— GetRequestStream is not supported by PackWebRequest. (Overrides WebRequestGetRequestStream.)
Public method GetRequestStreamAsyncWhen overridden in a descendant class, returns a Stream for writing data to the Internet resource as an asynchronous operation. (Inherited from WebRequest.)
Public method GetResponseReturns the response stream for the request. (Overrides WebRequestGetResponse.)
Public method GetResponseAsyncWhen overridden in a descendant class, returns a response to an Internet request as an asynchronous operation. (Inherited from WebRequest.)
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.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implemetation Private method ISerializableGetObjectDataInfrastructure. When overridden in a descendant class, populates a SerializationInfo instance with the data needed to serialize the WebRequest. (Inherited from WebRequest.)
Top
Remarks

System.IO.Packaging APIs use a defined pack uri syntax to refer to parts that are contained in a package.

For more information about the abstract class that this class derives from and the operation of requests and responses, see WebRequest.

Version Information

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Platforms

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.