Class FileType
- Namespace
- ZeroInstall.DesktopIntegration.Windows
- Assembly
- ZeroInstall.DesktopIntegration.dll
public static class FileType
- Inheritance
-
FileType
- Inherited Members
Fields
RegSubKeyOpenWith
The registry subkey containing "open with" ProgID references.
public const string RegSubKeyOpenWith = "OpenWithProgIDs"
Field Value
RegValueContentType
The registry value name for MIME type storage.
public const string RegValueContentType = "Content Type"
Field Value
RegValueFriendlyName
The registry value name for friendly type name storage.
public const string RegValueFriendlyName = "FriendlyTypeName"
Field Value
RegValuePerceivedType
The registry value name for perceived type storage.
public const string RegValuePerceivedType = "PerceivedType"
Field Value
Methods
Register(FeedTarget, FileType, IIconStore, bool, bool)
Registers a file type in the current system.
public static void Register(FeedTarget target, FileType fileType, IIconStore iconStore, bool machineWide, bool accessPoint = false)
Parameters
target
FeedTargetThe application being integrated.
fileType
FileTypeThe file type to register.
iconStore
IIconStoreStores icon files downloaded from the web as local files.
machineWide
boolRegister the file type machine-wide instead of just for the current user.
accessPoint
boolIndicates that the file associations shall become default handlers for their respective types.
Exceptions
- OperationCanceledException
The user canceled the task.
- IOException
A problem occurred while writing to the filesystem or registry.
- WebException
A problem occurred while downloading additional data (such as icons).
- UnauthorizedAccessException
Write access to the filesystem or registry is not permitted.
Unregister(FileType, bool, bool)
Unregisters a file type in the current system.
public static void Unregister(FileType fileType, bool machineWide, bool accessPoint = false)
Parameters
fileType
FileTypeThe file type to remove.
machineWide
boolUnregister the file type machine-wide instead of just for the current user.
accessPoint
boolIndicates that the file associations were default handlers for their respective types.
Exceptions
- IOException
A problem occurred while writing to the filesystem or registry.
- UnauthorizedAccessException
Write access to the filesystem or registry is not permitted.