NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WebRequestFactory.Create (URI, Boolean)

Creates a new WebRequest instance for the specified URI scheme.

[Visual Basic]
Overloads Public Shared Function Create( _
   ByVal RequestURL As URI, _
   ByVal UseURLBase As Boolean _
) As WebRequest
[C#]
public static WebRequest Create(
   URI RequestURL,
   bool UseURLBase
);
[C++]
public: static WebRequest* Create(
   URI* RequestURL,
   bool UseURLBase
);
[JScript]
public static function Create(
   RequestURL : URI,
   UseURLBase : Boolean
) : WebRequest;

Parameters

RequestURL
A URI class instance containing the URI of the requested resource.
UseURLBase
[To be supplied.]

Return Value

A WebRequest descendent for the specific URI scheme.

Exceptions

Exception Type Condition
NotSupportedException The request scheme specified in RequestURL has not been registered.

Remarks

The registered IWebRequestCreate methods for WebRequest descendents are searched in order by length. The first method found that matches the RequestURL will be used to create a WebRequest instance to handle the request.

See Also

WebRequestFactory Class | WebRequestFactory Members | System.Net Namespace | WebRequestFactory.Create Overload List