WebRequest.Create Method (Uri)
Initializes a new WebRequest instance for the specified URI scheme.
Assembly: System.Net (in System.Net.dll)
The method returns a descendant of the WebRequest class determined at run time as the closest registered match for requestUri. By default, The Create method returns a derived instance of the HttpWebRequest class.
For example, if you create a WebRequest descendant, Handler1, to handle requests to http://www.contoso.com/text/ and another named Handler2 to handle requests to http://www.contoso.com/code/, you can use Create method to return the WebRequest descendant associated with either specified URI.
Silverlight for Windows PhoneIf you attempt to access a file from an FTP site, the application throws NullRefrenceException instead of NotSupportedException.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.