Table of Contents

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

target FeedTarget

The application being integrated.

urlProtocol UrlProtocol

The URL protocol to register.

iconStore IIconStore

Stores icon files downloaded from the web as local files.

machineWide bool

Register the URL protocol machine-wide instead of just for the current user.

accessPoint bool

Indicates 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

urlProtocol UrlProtocol

The URL protocol to remove.

machineWide bool

Unregister the URL protocol machine-wide instead of just for the current user.

accessPoint bool

Indicates 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.