WebRequest Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The WebRequest type exposes the following members.
| Name | Description | |
|---|---|---|
|
Abort | Aborts the Request. |
|
BeginGetRequestStream | When overridden in a descendant class, provides an asynchronous method to request a stream. |
|
BeginGetResponse | When overridden in a descendant class, begins an asynchronous request for an Internet resource. |
|
Create(String) | Initializes a new WebRequest instance for the specified URI scheme. |
|
Create(Uri) | Initializes a new WebRequest instance for the specified URI scheme. |
|
CreateHttp(String) | Initializes a new HttpWebRequest instance for the specified URI string. |
|
CreateHttp(Uri) | Initializes a new HttpWebRequest instance for the specified URI. |
|
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(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetRequestStreamAsync | When overridden in a descendant class, returns a Stream for writing data to the Internet resource as an asynchronous operation. |
|
GetResponseAsync | When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (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 | |
|---|---|---|
|
GetCurrentNetworkInterface | Gets all available information about the network interface that corresponds to a web request. (Defined by WebRequestExtensions.) |
|
SetNetworkPreference | Sets the preference for a web request to use either cellular or non-cellular technology. (Defined by WebRequestExtensions.) |
|
SetNetworkRequirement | Sets the requirement for a web request to use either cellular or non-cellular technology. (Defined by WebRequestExtensions.) |
Show: