Registers a WebRequest descendant for the specified URI.
Assemblies: System (in System.dll)
System.Net.Requests (in System.Net.Requests.dll)
'Declaration Public Shared Function RegisterPrefix ( _ prefix As String, _ creator As IWebRequestCreate _ ) As Boolean
Return ValueType: System.Boolean
true if registration is successful; otherwise, false.
The method registers WebRequest descendants to service requests. WebRequest descendants are typically registered to handle a specific protocol, such HTTP or FTP, but can be registered to handle a request to a specific server or path on a server.
The pre-registered reserve types already registered include the following:
Duplicate prefixes are not allowed. returns false if an attempt is made to register a duplicate prefix.