WebRequest.RegisterPrefix Method (String, IWebRequestCreate)
Registers a WebRequest descendant for the specified URI.
Assembly: System (in System.dll)
Return ValueType: System.Boolean
true if registration is successful; otherwise, false.
The 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.method registers
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.
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1