Create Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates a WebRequest instance.

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

WebRequest Create(
	Uri uri


Type: System..::..Uri
The uniform resource identifier (URI) of the Web resource.

Return Value

Type: System.Net..::..WebRequest
A WebRequest instance.

The Create method must return an initialized instance of the WebRequest descendant that is capable of performing a standard request/response transaction for the protocol without needing any protocol-specific fields modified.