Export (0) Print
Expand All

PackWebRequest Class

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

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

Namespace:  System.IO.Packaging
Assembly:  PresentationCore (in PresentationCore.dll)

public sealed class PackWebRequest : WebRequest

The PackWebRequest type exposes the following members.

  NameDescription
Public propertyAuthenticationLevelGets or sets values indicating the level of authentication and impersonation used for this request. (Inherited from WebRequest.)
Public propertyCachePolicyGets or sets the RequestCachePolicy. (Overrides WebRequest.CachePolicy.)
Public propertyConnectionGroupNameGets or sets the name of the connection group. (Overrides WebRequest.ConnectionGroupName.)
Public propertyContentLengthGets or sets the Content-length HTTP header. (Overrides WebRequest.ContentLength.)
Public propertyContentTypeGets or sets the Content-type HTTP header. (Overrides WebRequest.ContentType.)
Public propertyCredentialsGets or sets the authentication credentials. (Overrides WebRequest.Credentials.)
Public propertyHeadersGets or sets the collection of header name/value pairs associated with the request. (Overrides WebRequest.Headers.)
Public propertyImpersonationLevelGets or sets the impersonation level for the current request. (Inherited from WebRequest.)
Public propertyMethodGets or sets the protocol method to use with the pack URI request. (Overrides WebRequest.Method.)
Public propertyPreAuthenticateGets or sets a value that indicates whether to preauthenticate the request. (Overrides WebRequest.PreAuthenticate.)
Public propertyProxyGets or sets the network proxy for Internet access. (Overrides WebRequest.Proxy.)
Public propertyRequestUriGets the URI of the resource associated with the request. (Overrides WebRequest.RequestUri.)
Public propertyTimeoutGets or sets the length of time before the request times out. (Overrides WebRequest.Timeout.)
Public propertyUseDefaultCredentialsGets or sets the default authentication credentials. (Overrides WebRequest.UseDefaultCredentials.)
Top

  NameDescription
Public methodAbortAborts the Request (Inherited from WebRequest.)
Public methodBeginGetRequestStreamWhen overridden in a descendant class, provides an asynchronous version of the GetRequestStream method. (Inherited from WebRequest.)
Public methodBeginGetResponseWhen overridden in a descendant class, begins an asynchronous request for an Internet resource. (Inherited from WebRequest.)
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodEndGetRequestStreamWhen overridden in a descendant class, returns a Stream for writing data to the Internet resource. (Inherited from WebRequest.)
Public methodEndGetResponseWhen overridden in a descendant class, returns a WebResponse. (Inherited from WebRequest.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetInnerRequestGets the inner WebRequest.
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodGetObjectDataInfrastructure. Populates a SerializationInfo with the data needed to serialize the target object. (Inherited from WebRequest.)
Public methodGetRequestStreamDo not use—GetRequestStream is not supported by PackWebRequest. (Overrides WebRequest.GetRequestStream().)
Public methodGetResponseReturns the response stream for the request. (Overrides WebRequest.GetResponse().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodISerializable.GetObjectDataInfrastructure. When overridden in a descendant class, populates a SerializationInfo instance with the data needed to serialize the WebRequest. (Inherited from WebRequest.)
Top

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

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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

Community Additions

ADD
Show:
© 2014 Microsoft