DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.Protocols.IProtocolHandlerCollection Interface Reference

Represents the registrar for the Url request handlers. More...

Inherits IEnumerable< IProtocolHandlerEntry >, and IDisposable.

Inherited by DotNetBrowser.Protocols.IProtocolService.

Public Member Functions

void Register (string protocol, IProtocolHandler handler)
 Registers the handler for the specified protocol. More...
 
void Unregister (string protocol)
 Unregisters the handler for the specified protocol. More...
 
void Unregister (IProtocolHandler handler)
 Unregisters the handler for all protocols. More...
 
void UnregisterAll ()
 Unregisters all handlers for all protocols. More...
 
bool Contains (string protocol)
 Checks if any handler is registered for the specified protocol name. More...
 
bool Contains (IProtocolHandler handler)
 Check if the handler instance is registered for any protocol. More...
 

Properties

IProtocolHandler this[string protocol] [get]
 Provides the handler instance registered for the specified protocol name. More...
 
IEnumerable< string > this[IProtocolHandler handler] [get]
 Provides all protocols for which the specified handler instance is registered. More...
 

Detailed Description

Represents the registrar for the Url request handlers.

Member Function Documentation

bool DotNetBrowser.Protocols.IProtocolHandlerCollection.Contains ( string  protocol)

Checks if any handler is registered for the specified protocol name.

Parameters
protocolProtocol name
Returns
True if any handler registered for the specified protocol
bool DotNetBrowser.Protocols.IProtocolHandlerCollection.Contains ( IProtocolHandler  handler)

Check if the handler instance is registered for any protocol.

Parameters
handlerHandler instance
Returns
void DotNetBrowser.Protocols.IProtocolHandlerCollection.Register ( string  protocol,
IProtocolHandler  handler 
)

Registers the handler for the specified protocol.

Parameters
protocolProtocol name
handlerInstance of the handler
void DotNetBrowser.Protocols.IProtocolHandlerCollection.Unregister ( string  protocol)

Unregisters the handler for the specified protocol.

Parameters
protocolProtocol name
void DotNetBrowser.Protocols.IProtocolHandlerCollection.Unregister ( IProtocolHandler  handler)

Unregisters the handler for all protocols.

Parameters
handlerHandler instance
void DotNetBrowser.Protocols.IProtocolHandlerCollection.UnregisterAll ( )

Unregisters all handlers for all protocols.

Property Documentation

IEnumerable<string> DotNetBrowser.Protocols.IProtocolHandlerCollection.this[IProtocolHandler handler]
get

Provides all protocols for which the specified handler instance is registered.

Parameters
handlerHandler instance
Returns
Collection of the protocols
IProtocolHandler DotNetBrowser.Protocols.IProtocolHandlerCollection.this[string protocol]
get

Provides the handler instance registered for the specified protocol name.

Parameters
protocolProtocol name
Returns