Share via


WebRequest.Create Method (Uri)

Creates a WebRequest instance.

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

Syntax

public static WebRequest Create (
         Uri requestUri
)

Parameters

  • requestUri
    A Uri containing the URI of the requested resource.

Return Value

A WebRequest descendant for the specified URI scheme.

Remarks

This is the main creation routine. The specified Uri is looked up in the prefix match table, and the appropriate handler is invoked to create the object.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

WebRequest Class
WebRequest Members
System.Net Namespace