Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

System.Object
  System.MarshalByRefObject
    System.Net.WebRequest
      System.IO.Packaging.PackWebRequest

public sealed class PackWebRequest : WebRequest

NameDescription
System_CAPS_pubpropertyAuthenticationLevel

Gets or sets values indicating the level of authentication and impersonation used for this request.(Inherited from WebRequest.)

System_CAPS_pubpropertyCachePolicy

Gets or sets the RequestCachePolicy.(Overrides WebRequest.CachePolicy.)

System_CAPS_pubpropertyConnectionGroupName

Gets or sets the name of the connection group.(Overrides WebRequest.ConnectionGroupName.)

System_CAPS_pubpropertyContentLength

Gets or sets the Content-length HTTP header. (Overrides WebRequest.ContentLength.)

System_CAPS_pubpropertyContentType

Gets or sets the Content-type HTTP header. (Overrides WebRequest.ContentType.)

System_CAPS_pubpropertyCreatorInstance

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

System_CAPS_pubpropertyCredentials

Gets or sets the authentication credentials.(Overrides WebRequest.Credentials.)

System_CAPS_pubpropertyHeaders

Gets or sets the collection of header name/value pairs associated with the request. (Overrides WebRequest.Headers.)

System_CAPS_pubpropertyImpersonationLevel

Gets or sets the impersonation level for the current request.(Inherited from WebRequest.)

System_CAPS_pubpropertyMethod

Gets or sets the protocol method to use with the pack URI request.(Overrides WebRequest.Method.)

System_CAPS_pubpropertyPreAuthenticate

Gets or sets a value that indicates whether to preauthenticate the request.(Overrides WebRequest.PreAuthenticate.)

System_CAPS_pubpropertyProxy

Gets or sets the network proxy for Internet access.(Overrides WebRequest.Proxy.)

System_CAPS_pubpropertyRequestUri

Gets the URI of the resource associated with the request.(Overrides WebRequest.RequestUri.)

System_CAPS_pubpropertyTimeout

Gets or sets the length of time before the request times out.(Overrides WebRequest.Timeout.)

System_CAPS_pubpropertyUseDefaultCredentials

Gets or sets the default authentication credentials.(Overrides WebRequest.UseDefaultCredentials.)

NameDescription
System_CAPS_pubmethodAbort()

Aborts the Request (Inherited from WebRequest.)

System_CAPS_pubmethodBeginGetRequestStream(AsyncCallback, Object)

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

System_CAPS_pubmethodBeginGetResponse(AsyncCallback, Object)

When overridden in a descendant class, begins an asynchronous request for an Internet resource.(Inherited from WebRequest.)

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

System_CAPS_pubmethodEndGetRequestStream(IAsyncResult)

When overridden in a descendant class, returns a Stream for writing data to the Internet resource.(Inherited from WebRequest.)

System_CAPS_pubmethodEndGetResponse(IAsyncResult)

When overridden in a descendant class, returns a WebResponse.(Inherited from WebRequest.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetInnerRequest()

Gets the inner WebRequest.

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetRequestStream()

Do not use—GetRequestStream is not supported by PackWebRequest.(Overrides WebRequest.GetRequestStream().)

System_CAPS_pubmethodGetRequestStreamAsync()

When overridden in a descendant class, returns a Stream for writing data to the Internet resource as an asynchronous operation.(Inherited from WebRequest.)

System_CAPS_pubmethodGetResponse()

Returns the response stream for the request.(Overrides WebRequest.GetResponse().)

System_CAPS_pubmethodGetResponseAsync()

When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation.(Inherited from WebRequest.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. 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.

.NET Framework
Available since 3.0

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

Return to top
Show: