Mono Class Library: System.Net.WebRequest Overview | MembersSystem.Net.WebRequest.Create Method |
Constructs a new instance of a class derived from System.Net.WebRequest. [Edit]
|
A new instance of a class derived from System.Net.WebRequest that is registered to handle the closest registered match for requestUri. [Edit]
Type Reason !:System.Security.Permissions.WebPermission [Edit] Requires permission to connect to the requested URI. See NetworkAccess.Connect.
Type Reason ArgumentNullException requestUri is null. [Edit] NotSupportedException The request scheme specified in requestUri is not registered. [Edit] System.Security.SecurityException The caller does not have permission to connect to the requested URI or a URI that the request is redirected to. [Edit]
To determine the closest match, this method checks the registered URIs for the longest URI prefix that matches requestUri.
Note:[Edit]For an example that demonstrates this method, see WebRequest.CreateDefault(Uri).
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0