C# Класс ZeroInstall.DesktopIntegration.Windows.ContextMenu

Contains control logic for applying Store.Model.Capabilities.ContextMenu and AccessPoints.ContextMenu on Windows systems.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
RegKeyClassesExecutableFiles string[]

Открытые методы

Метод Описание
Apply ( FeedTarget target, Store contextMenu, bool machineWide, ITaskHandler handler ) : void

Adds a context menu entry to the current system.

Remove ( Store contextMenu, bool machineWide ) : void

Removes a context menu entry from the current system.

Приватные методы

Метод Описание
GetKeyName ( Store target ) : IEnumerable

Gets the registry key name relevant for the specified context menu target.

Описание методов

Apply() публичный статический Метод

Adds a context menu entry to the current system.
The user canceled the task. A problem occurs while writing to the filesystem or registry. A problem occured while downloading additional data (such as icons). Write access to the filesystem or registry is not permitted. The data in is invalid.
public static Apply ( FeedTarget target, Store contextMenu, bool machineWide, ITaskHandler handler ) : void
target ZeroInstall.Store.FeedTarget The application being integrated.
contextMenu Store The context menu entry to add.
machineWide bool Add the context menu entry machine-wide instead of just for the current user.
handler ITaskHandler A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
Результат void

Remove() публичный статический Метод

Removes a context menu entry from the current system.
A problem occurs while writing to the filesystem or registry. Write access to the filesystem or registry is not permitted. The data in is invalid.
public static Remove ( Store contextMenu, bool machineWide ) : void
contextMenu Store The context menu entry to remove.
machineWide bool Remove the context menu entry machine-wide instead of just for the current user.
Результат void

Описание свойств

RegKeyClassesExecutableFiles публичное статическое свойство

The HKCU registry key for registering things for different kinds of executable files.
public static string[] RegKeyClassesExecutableFiles
Результат string[]