Breyta

Deila með


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

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

(Inherited from WebRequest)
CachePolicy

Gets or sets the RequestCachePolicy.

ConnectionGroupName

Gets or sets the name of the connection group.

ContentLength

Gets or sets the Content-length HTTP header.

ContentType

Gets or sets the Content-type HTTP header.

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.

Headers

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

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.

PreAuthenticate

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

Proxy

Gets or sets the network proxy for Internet access.

RequestUri

Gets the URI of the resource associated with the request.

Timeout

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

UseDefaultCredentials

Gets or sets the default authentication credentials.

Methods

Abort()

Aborts the request.

(Inherited from WebRequest)
BeginGetRequestStream(AsyncCallback, Object)

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

(Inherited from WebRequest)
BeginGetResponse(AsyncCallback, Object)

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

(Inherited from WebRequest)
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)

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

(Inherited from WebRequest)
EndGetResponse(IAsyncResult)

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 the default hash function.

(Inherited from Object)
GetInnerRequest()

Gets the inner WebRequest.

GetLifetimeService()
Obsolete.

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

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

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

(Inherited from WebRequest)
GetRequestStream()

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

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.

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()
Obsolete.

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

(Inherited from MarshalByRefObject)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

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