Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.Unix.FileType Class Reference

Contains control logic for applying Model.Capabilities.FileType and AccessPoints.FileType on FreeDesktop.org systems. More...

Static Public Member Functions

static void Register (FeedTarget target, Model.Capabilities.FileType fileType, IIconStore iconStore, bool machineWide, bool accessPoint=false)
 Registers a file type in the current system. More...
 
static void Unregister (Model.Capabilities.FileType fileType, bool machineWide, bool accessPoint=false)
 Unregisters a file type in the current system. More...
 

Detailed Description

Contains control logic for applying Model.Capabilities.FileType and AccessPoints.FileType on FreeDesktop.org systems.

Member Function Documentation

◆ Register()

static void ZeroInstall.DesktopIntegration.Unix.FileType.Register ( FeedTarget  target,
Model.Capabilities.FileType  fileType,
IIconStore  iconStore,
bool  machineWide,
bool  accessPoint = false 
)
inlinestatic

Registers a file type in the current system.

Parameters
targetThe application being integrated.
fileTypeThe file type to register.
machineWideRegister the file type machine-wide instead of just for the current user.
iconStoreStores icon files downloaded from the web as local files.
accessPointIndicates that the file associations shall become default handlers for their respective types.
Exceptions
OperationCanceledExceptionThe user canceled the task.
IOExceptionA problem occurred while writing to the filesystem.
WebExceptionA problem occurred while downloading additional data (such as icons).
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

◆ Unregister()

static void ZeroInstall.DesktopIntegration.Unix.FileType.Unregister ( Model.Capabilities.FileType  fileType,
bool  machineWide,
bool  accessPoint = false 
)
inlinestatic

Unregisters a file type in the current system.

Parameters
fileTypeThe file type to remove.
machineWideUnregister the file type machine-wide instead of just for the current user.
accessPointIndicates that the file associations were default handlers for their respective types.
Exceptions
IOExceptionA problem occurred while writing to the filesystem.
UnauthorizedAccessExceptionWrite access to the filesystem is not permitted.

The documentation for this class was generated from the following file: