C# Класс WindowsStartupTool.Lib.RegistryEditor

Author: Narek Yegoryan
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void

IDisposable support

GetAllStartupAppsFromRegistry ( SkippableSourceEnum skipSource = SkippableSourceEnum.None ) : string>.Dictionary
GetStartupAppsFromRegistry ( TargetPlatformEnum platform = TargetPlatformEnum.x32 ) : string>.Dictionary

Returns the list of startup programs on remote machine, with executable file path's

InitializeRegistry ( string subKey = "", TargetPlatformEnum targetPlatform = TargetPlatformEnum.x32 ) : void

Initializes RegistryEditor to passed in registry key value

RegistryEditor ( string machine, RegistryLookupSourceEnum source = RegistryLookupSourceEnum.Machine, bool startServiceIfNeeded = false ) : Microsoft.Win32
RemoveRegistryValueByKey ( string subKey, string registryKey ) : void

Removes specified key value pair from registry sub key

RemoveStartupAppByKey ( string key ) : void

Removes an app with spacified key from startup

SetRegistry ( string subKey, string registryKey, string registryValue ) : void

Sets the registry with specified sub key

SetStartupAppToRegistry ( string key, string executeablePath ) : void

If application with the same key is exists function will replace the value

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

Dispose() публичный Метод

IDisposable support
public Dispose ( ) : void
Результат void

GetAllStartupAppsFromRegistry() публичный Метод

public GetAllStartupAppsFromRegistry ( SkippableSourceEnum skipSource = SkippableSourceEnum.None ) : string>.Dictionary
skipSource SkippableSourceEnum
Результат string>.Dictionary

GetStartupAppsFromRegistry() публичный Метод

Returns the list of startup programs on remote machine, with executable file path's
public GetStartupAppsFromRegistry ( TargetPlatformEnum platform = TargetPlatformEnum.x32 ) : string>.Dictionary
platform TargetPlatformEnum
Результат string>.Dictionary

InitializeRegistry() публичный Метод

Initializes RegistryEditor to passed in registry key value
public InitializeRegistry ( string subKey = "", TargetPlatformEnum targetPlatform = TargetPlatformEnum.x32 ) : void
subKey string
targetPlatform TargetPlatformEnum
Результат void

RegistryEditor() публичный Метод

public RegistryEditor ( string machine, RegistryLookupSourceEnum source = RegistryLookupSourceEnum.Machine, bool startServiceIfNeeded = false ) : Microsoft.Win32
machine string
source RegistryLookupSourceEnum
startServiceIfNeeded bool
Результат Microsoft.Win32

RemoveRegistryValueByKey() публичный Метод

Removes specified key value pair from registry sub key
public RemoveRegistryValueByKey ( string subKey, string registryKey ) : void
subKey string
registryKey string
Результат void

RemoveStartupAppByKey() публичный Метод

Removes an app with spacified key from startup
public RemoveStartupAppByKey ( string key ) : void
key string
Результат void

SetRegistry() публичный Метод

Sets the registry with specified sub key
public SetRegistry ( string subKey, string registryKey, string registryValue ) : void
subKey string
registryKey string
registryValue string
Результат void

SetStartupAppToRegistry() публичный Метод

If application with the same key is exists function will replace the value
public SetStartupAppToRegistry ( string key, string executeablePath ) : void
key string
executeablePath string
Результат void