C# Class WindowsStartupTool.Lib.RegistryEditor

Author: Narek Yegoryan
Inheritance: IDisposable
Afficher le fichier Open project: narekye/win-tools Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Dispose() public méthode

IDisposable support
public Dispose ( ) : void
Résultat void

GetAllStartupAppsFromRegistry() public méthode

public GetAllStartupAppsFromRegistry ( SkippableSourceEnum skipSource = SkippableSourceEnum.None ) : string>.Dictionary
skipSource SkippableSourceEnum
Résultat string>.Dictionary

GetStartupAppsFromRegistry() public méthode

Returns the list of startup programs on remote machine, with executable file path's
public GetStartupAppsFromRegistry ( TargetPlatformEnum platform = TargetPlatformEnum.x32 ) : string>.Dictionary
platform TargetPlatformEnum
Résultat string>.Dictionary

InitializeRegistry() public méthode

Initializes RegistryEditor to passed in registry key value
public InitializeRegistry ( string subKey = "", TargetPlatformEnum targetPlatform = TargetPlatformEnum.x32 ) : void
subKey string
targetPlatform TargetPlatformEnum
Résultat void

RegistryEditor() public méthode

public RegistryEditor ( string machine, RegistryLookupSourceEnum source = RegistryLookupSourceEnum.Machine, bool startServiceIfNeeded = false ) : Microsoft.Win32
machine string
source RegistryLookupSourceEnum
startServiceIfNeeded bool
Résultat Microsoft.Win32

RemoveRegistryValueByKey() public méthode

Removes specified key value pair from registry sub key
public RemoveRegistryValueByKey ( string subKey, string registryKey ) : void
subKey string
registryKey string
Résultat void

RemoveStartupAppByKey() public méthode

Removes an app with spacified key from startup
public RemoveStartupAppByKey ( string key ) : void
key string
Résultat void

SetRegistry() public méthode

Sets the registry with specified sub key
public SetRegistry ( string subKey, string registryKey, string registryValue ) : void
subKey string
registryKey string
registryValue string
Résultat void

SetStartupAppToRegistry() public méthode

If application with the same key is exists function will replace the value
public SetStartupAppToRegistry ( string key, string executeablePath ) : void
key string
executeablePath string
Résultat void