Sys.Net.WebRequest webRequest Constructor

Initializes a new instance of the Sys.Net.WebRequest class.

var request = new Sys.Net.WebRequest();

Remarks

You must always construct an instance of the WebRequest class before you use it.

Example

The following example shows how to instantiate a Web request. This code is part of a complete example found in the WebRequest overview.

// Instantiate the WebRequest object.
var wRequest =  new Sys.Net.WebRequest();

See Also

Reference

Sys.Net.WebRequestManager Class

Sys.Net.WebRequestExecutor Class

Sys.Net.XMLHttpExecutor Class