Assembly: System (in system.dll)
'Declaration Protected Overridable Function GetWebRequest ( _ address As Uri _ ) As WebRequest 'Usage Dim address As Uri Dim returnValue As WebRequest returnValue = Me.GetWebRequest(address)
A Uri that identifies the resource to request.
Return ValueA new WebRequest object for the specified resource.
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.
The following code example shows an implementation of this method that can be customized by a class derived from WebClient.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.