Class RegistryFunctions

Functions to read from and write to the Windows Registry.

System.Object
  Stonefield.Library.RegistryFunctions
public static class RegistryFunctions : object

Remarks

Adapted from http://www.codeproject.com/Articles/3389/Read-write-and-delete-from-registry-with-C

Class Members

MemberDescription

DeleteKey

Deletes the specified key.

public static void DeleteKey(string subKey,     string keyName)

DeleteSubKeyTree

Deletes an entire subkey tree.

public static void DeleteSubKeyTree(string subKey)

GetValueNames

Gets the values names for the subkey.

public static String[] GetValueNames(string subKey)

Read

Reads from the Registry.

public static object Read(string subKey,     string keyName)

SubKeyCount

Counts the number of items in the subkey.

public static int SubKeyCount(string subKey)

ValueCount

Counts the number of items in the subkey.

public static int ValueCount(string subKey)

Write

Writes to the Registry.

public static void Write(string subKey,     string keyName,     object value)

Requirements

Namespace: Stonefield.Library
Assembly: library.dll