PackWebRequest PackWebRequest PackWebRequest PackWebRequest Class

Definition

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

public ref class PackWebRequest sealed : System::Net::WebRequest
public sealed class PackWebRequest : System.Net.WebRequest
type PackWebRequest = class
    inherit WebRequest
Public NotInheritable Class PackWebRequest
Inherits WebRequest
Inheritance

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.

Properties

AuthenticationLevel AuthenticationLevel AuthenticationLevel AuthenticationLevel

Gets or sets values indicating the level of authentication and impersonation used for this request.

(Inherited from WebRequest)
CachePolicy CachePolicy CachePolicy CachePolicy

Gets or sets the RequestCachePolicy.

ConnectionGroupName ConnectionGroupName ConnectionGroupName ConnectionGroupName

Gets or sets the name of the connection group.

ContentLength ContentLength ContentLength ContentLength

Gets or sets the Content-length HTTP header.

ContentType ContentType ContentType ContentType

Gets or sets the Content-type HTTP header.

CreatorInstance CreatorInstance CreatorInstance CreatorInstance

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 Credentials Credentials Credentials

Gets or sets the authentication credentials.

Headers Headers Headers Headers

Gets or sets the collection of header name/value pairs associated with the request.

ImpersonationLevel ImpersonationLevel ImpersonationLevel ImpersonationLevel

Gets or sets the impersonation level for the current request.

(Inherited from WebRequest)
Method Method Method Method

Gets or sets the protocol method to use with the pack URI request.

PreAuthenticate PreAuthenticate PreAuthenticate PreAuthenticate

Gets or sets a value that indicates whether to preauthenticate the request.

Proxy Proxy Proxy Proxy

Gets or sets the network proxy for Internet access.

RequestUri RequestUri RequestUri RequestUri

Gets the URI of the resource associated with the request.

Timeout Timeout Timeout Timeout

Gets or sets the length of time before the request times out.

UseDefaultCredentials UseDefaultCredentials UseDefaultCredentials UseDefaultCredentials

Gets or sets the default authentication credentials.

Methods

Abort() Abort() Abort() Abort()

Aborts the request.

(Inherited from WebRequest)
BeginGetRequestStream(AsyncCallback, Object) BeginGetRequestStream(AsyncCallback, Object) BeginGetRequestStream(AsyncCallback, Object) BeginGetRequestStream(AsyncCallback, Object)

When overridden in a descendant class, provides an asynchronous version of the GetRequestStream() method.

(Inherited from WebRequest)
BeginGetResponse(AsyncCallback, Object) BeginGetResponse(AsyncCallback, Object) BeginGetResponse(AsyncCallback, Object) BeginGetResponse(AsyncCallback, Object)

When overridden in a descendant class, begins an asynchronous request for an Internet resource.

(Inherited from WebRequest)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

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(IAsyncResult) EndGetRequestStream(IAsyncResult) EndGetRequestStream(IAsyncResult) EndGetRequestStream(IAsyncResult)

When overridden in a descendant class, returns a Stream for writing data to the Internet resource.

(Inherited from WebRequest)
EndGetResponse(IAsyncResult) EndGetResponse(IAsyncResult) EndGetResponse(IAsyncResult) EndGetResponse(IAsyncResult)

When overridden in a descendant class, returns a WebResponse.

(Inherited from WebRequest)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetInnerRequest() GetInnerRequest() GetInnerRequest() GetInnerRequest()

Gets the inner WebRequest.

GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo with the data needed to serialize the target object.

(Inherited from WebRequest)
GetRequestStream() GetRequestStream() GetRequestStream() GetRequestStream()

Do not use-GetRequestStream() is not supported by PackWebRequest.

GetRequestStreamAsync() GetRequestStreamAsync() GetRequestStreamAsync() 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() GetResponse() GetResponse() GetResponse()

Returns the response stream for the request.

GetResponseAsync() GetResponseAsync() GetResponseAsync() GetResponseAsync()

When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation.

(Inherited from WebRequest)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

When overridden in a descendant class, populates a SerializationInfo instance with the data needed to serialize the WebRequest.

(Inherited from WebRequest)

Applies to

See also