PackWebRequest Class
Makes a request to an entire PackagePart or to a PackagePart in a package, identified by a pack URI.
Namespace: System.IO.Packaging
Assembly: PresentationCore (in PresentationCore.dll)
The PackWebRequest type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AuthenticationLevel | Gets or sets values indicating the level of authentication and impersonation used for this request. (Inherited from WebRequest.) |
![]() | CachePolicy | Gets or sets the RequestCachePolicy. (Overrides WebRequest.CachePolicy.) |
![]() | ConnectionGroupName | Gets or sets the name of the connection group. (Overrides WebRequest.ConnectionGroupName.) |
![]() | ContentLength | Gets or sets the Content-length HTTP header. (Overrides WebRequest.ContentLength.) |
![]() | ContentType | Gets or sets the Content-type HTTP header. (Overrides WebRequest.ContentType.) |
![]() | CreatorInstance | Obsolete. 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.) |
![]() | Credentials | Gets or sets the authentication credentials. (Overrides WebRequest.Credentials.) |
![]() | Headers | Gets or sets the collection of header name/value pairs associated with the request. (Overrides WebRequest.Headers.) |
![]() | ImpersonationLevel | Gets or sets the impersonation level for the current request. (Inherited from WebRequest.) |
![]() | Method | Gets or sets the protocol method to use with the pack URI request. (Overrides WebRequest.Method.) |
![]() | PreAuthenticate | Gets or sets a value that indicates whether to preauthenticate the request. (Overrides WebRequest.PreAuthenticate.) |
![]() | Proxy | Gets or sets the network proxy for Internet access. (Overrides WebRequest.Proxy.) |
![]() | RequestUri | Gets the URI of the resource associated with the request. (Overrides WebRequest.RequestUri.) |
![]() | Timeout | Gets or sets the length of time before the request times out. (Overrides WebRequest.Timeout.) |
![]() | UseDefaultCredentials | Gets or sets the default authentication credentials. (Overrides WebRequest.UseDefaultCredentials.) |
| Name | Description | |
|---|---|---|
![]() | Abort | Aborts the Request (Inherited from WebRequest.) |
![]() | BeginGetRequestStream | When overridden in a descendant class, provides an asynchronous version of the GetRequestStream method. (Inherited from WebRequest.) |
![]() | BeginGetResponse | When overridden in a descendant class, begins an asynchronous request for an Internet resource. (Inherited from WebRequest.) |
![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
![]() | EndGetRequestStream | When overridden in a descendant class, returns a Stream for writing data to the Internet resource. (Inherited from WebRequest.) |
![]() | EndGetResponse | When overridden in a descendant class, returns a WebResponse. (Inherited from WebRequest.) |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetInnerRequest | Gets the inner WebRequest. |
![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | GetRequestStream | Do not use—GetRequestStream is not supported by PackWebRequest. (Overrides WebRequest.GetRequestStream().) |
![]() | GetRequestStreamAsync | When overridden in a descendant class, returns a Stream for writing data to the Internet resource as an asynchronous operation. (Inherited from WebRequest.) |
![]() | GetResponse | Returns the response stream for the request. (Overrides WebRequest.GetResponse().) |
![]() | GetResponseAsync | When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation. (Inherited from WebRequest.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable.GetObjectData | Infrastructure. When overridden in a descendant class, populates a SerializationInfo instance with the data needed to serialize the WebRequest. (Inherited from WebRequest.) |
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.
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.
