Class UrlProtocol
- Namespace
- ZeroInstall.DesktopIntegration.Unix
- Assembly
- ZeroInstall.DesktopIntegration.dll
Contains control logic for applying UrlProtocol and UrlProtocol on GNOME systems.
public static class UrlProtocol
- Inheritance
-
UrlProtocol
- Inherited Members
Methods
Register(FeedTarget, UrlProtocol, IIconStore, bool, bool)
Registers a URL protocol in the current system.
public static void Register(FeedTarget target, UrlProtocol urlProtocol, IIconStore iconStore, bool machineWide, bool accessPoint = false)
Parameters
targetFeedTargetThe application being integrated.
urlProtocolUrlProtocolThe URL protocol to register.
iconStoreIIconStoreStores icon files downloaded from the web as local files.
machineWideboolRegister the URL protocol machine-wide instead of just for the current user.
accessPointboolIndicates that the handler shall become the default handler for the protocol.
Exceptions
- OperationCanceledException
The user canceled the task.
- IOException
A problem occurred while writing to the filesystem.
- WebException
A problem occurred while downloading additional data (such as icons).
- UnauthorizedAccessException
Write access to the filesystem is not permitted.
Unregister(UrlProtocol, bool, bool)
Unregisters a URL protocol in the current system.
public static void Unregister(UrlProtocol urlProtocol, bool machineWide, bool accessPoint = false)
Parameters
urlProtocolUrlProtocolThe URL protocol to remove.
machineWideboolUnregister the URL protocol machine-wide instead of just for the current user.
accessPointboolIndicates that the handler was the default handler for the protocol.
Exceptions
- IOException
A problem occurred while writing to the filesystem.
- UnauthorizedAccessException
Write access to the filesystem is not permitted.