WebClient.GetWebRequest Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a WebRequest object for the specified resource.
Assembly: System.Net (in System.Net.dll)
Parameters
- address
- Type: System.Uri
A Uri that identifies the resource to request.
This method copies the existing Headers and method to the newly created WebRequest object.
This method can be called only by classes that inherit from WebClient. It is provided to give inheritors access to the underlying WebRequest object. Derived classes should call the base class implementation of GetWebRequest to ensure the method works as expected.