ProtocolHandlerRegistry Class
The protocol handlers registered by the pages (https://html.spec.whatwg.org/multipage/system-state.html#custom-handlers). It is thread-safe.
public sealed class ProtocolHandlerRegistryConstructors
| Name | Description |
|---|---|
| ProtocolHandlerRegistry() |
ProtocolHandlerRegistry()
ProtocolHandlers.cspublic ProtocolHandlerRegistry()No documentation is available.
Properties
| Name | Description |
|---|---|
| Handlers | Gets the registered handlers (the scheme and the URL of each handler), in the order of their registration. |
Handlers
ProtocolHandlers.csGets the registered handlers (the scheme and the URL of each handler), in the order of their registration.
public IReadOnlyList<KeyValuePair<string, string>> Handlers { get; }Property value
Methods
| Name | Description |
|---|---|
| GetHandler(string) | Returns the URL of the handler used for a scheme (the last registered one), or null. |
| Register(string, string) | Registers a handler for a scheme. A scheme can have several handlers: the last registered one is used. |
| Unregister(string, string) | Removes the handler of a scheme registered with a URL. Returns false when there is none. |
GetHandler(string)
ProtocolHandlers.csRegister(string, string)
ProtocolHandlers.csRegisters a handler for a scheme. A scheme can have several handlers: the last registered one is used.