WebRequest Constructor ()

 

Initializes a new instance of the WebRequest class.

Namespace:   System.Net
Assembly:  System (in System.dll)

Protected Sub New

Use the Create method to initialize new WebRequest instances. Do not use the constructor.

The following example shows how to create a WebRequest instance by calling the Create method on the WebRequest class.

Dim myRequest As WebRequest = WebRequest.Create("http://www.contoso.com")

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: