IWebRequestCreate::Create Method (Uri^)
.NET Framework (current version)
Creates a WebRequest instance.
Assembly: System (in System.dll)
Parameters
- uri
-
Type:
System::Uri^
The uniform resource identifier (URI) of the Web resource.
| Exception | Condition | ||
|---|---|---|---|
| NotSupportedException | The request scheme specified in uri is not supported by this IWebRequestCreate instance. | ||
| ArgumentNullException | uri is null. | ||
| UriFormatException |
The URI specified in uri is not a valid URI. |
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.
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
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
Show:
