WebRequest Members
Makes a request to a Uniform Resource Identifier (URI). This is an abstract class.
The following tables list the members exposed by the WebRequest type.
| Name | Description | |
|---|---|---|
| AuthenticationLevel | Gets or sets values indicating the level of authentication and impersonation used for this request. |
| CachePolicy | Gets or sets the cache policy for this request. |
| ConnectionGroupName | When overridden in a descendant class, gets or sets the name of the connection group for the request. |
| ContentLength | When overridden in a descendant class, gets or sets the content length of the request data being sent. |
| ContentType | When overridden in a descendant class, gets or sets the content type of the request data being sent. |
| Credentials | When overridden in a descendant class, gets or sets the network credentials used for authenticating the request with the Internet resource. |
| DefaultCachePolicy | Gets or sets the default cache policy for this request. |
| DefaultWebProxy | Gets or sets the global HTTP proxy. |
| Headers | When overridden in a descendant class, 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. |
| Method | When overridden in a descendant class, gets or sets the protocol method to use in this request. |
| PreAuthenticate | When overridden in a descendant class, indicates whether to pre-authenticate the request. |
| Proxy | When overridden in a descendant class, gets or sets the network proxy to use to access this Internet resource. |
| RequestUri | When overridden in a descendant class, gets the URI of the Internet resource associated with the request. |
| Timeout | Gets or sets the length of time before the request times out. |
| UseDefaultCredentials | When overridden in a descendant class, gets or sets a Boolean value that controls whether DefaultCredentials are sent with requests. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Abort | Aborts the Request |
| BeginGetRequestStream | When overridden in a descendant class, provides an asynchronous version of the GetRequestStream method. |
| BeginGetResponse | When overridden in a descendant class, begins an asynchronous request for an Internet resource. |
| Create | Overloaded. Initializes a new WebRequest. |
| CreateDefault | Initializes a new WebRequest instance for the specified URI scheme. |
| 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. |
| EndGetResponse | When overridden in a descendant class, returns a WebResponse. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetRequestStream | When overridden in a descendant class, returns a Stream for writing data to the Internet resource. |
| GetResponse | When overridden in a descendant class, returns a response to an Internet request. |
| GetSystemWebProxy | Returns a proxy configured with the Internet Explorer settings of the currently impersonated user. |
| 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.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| RegisterPrefix | Registers a WebRequest descendant for the specified URI. |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| GetObjectData | Populates a SerializationInfo with the data needed to serialize the target object. |
| MemberwiseClone | Overloaded. (Inherited from MarshalByRefObject.) |
| Name | Description | |
|---|---|---|
| System.Runtime.Serialization.ISerializable.GetObjectData | When overridden in a descendant class, populates a SerializationInfo instance with the data needed to serialize the WebRequest. |