StauffConsulting.Essentials.

NiceRegistryKey

C#: 
public class NiceRegistryKey :
    object

VB: 
Public Class NiceRegistryKey
    Inherits Object

Type Ancestry:  Object
+---NiceRegistryKey


Represents a Windows registry key.

Summary Info

Constructor Summary

NiceRegistryKey constructor

Field Summary

static
readonly
NiceRegistryKey CurrentUser Represents the top-level CurrentUser registry key.
static
readonly
NiceRegistryKey LocalMachine Represents the top-level LocalMachine registry key.
readonlyRegistryKey MSregKey Microsoft's registry key object.

Property Summary

string FullName Returns the full name of the registry key.
string ShortName Returns the name of just this registry key, relative to its parent.

Method Summary

CreateSubKey
DeleteSubKey
DeleteSubKeyTree
DeleteValue
GetBoolValue
GetBoolValue
GetColorValue
GetColorValue
GetDecimalValue
GetDecimalValue
GetEnumValue
GetEnumValue
GetFontValue
GetFontValue
GetIntValue
GetIntValue
GetStringValue
GetStringValue
GetSubKeyNames
GetValueNames
OpenSubKey
OpenSubKey
SetBoolValue
SetColorValue
SetDecimalValue
SetEnumValue
SetFontValue
SetIntValue
SetStringValue

Miscellany Summary

Constructor Details


NiceRegistryKey

C#: 
NiceRegistryKey (Microsoft.Win32.RegistryKey msRegKey)

VB: 
Sub New(ByVal msRegKey As Microsoft.Win32.RegistryKey)

constructor

Parameters

msRegKey  

Field Details


CurrentUser

C#: 
readonly static StauffConsulting.Essentials.NiceRegistryKey CurrentUser;

VB: 
ReadOnly Shared CurrentUser As StauffConsulting.Essentials.NiceRegistryKey

Represents the top-level CurrentUser registry key.


LocalMachine

C#: 
readonly static StauffConsulting.Essentials.NiceRegistryKey LocalMachine;

VB: 
ReadOnly Shared LocalMachine As StauffConsulting.Essentials.NiceRegistryKey

Represents the top-level LocalMachine registry key.


MSregKey

C#: 
readonly Microsoft.Win32.RegistryKey MSregKey;

VB: 
ReadOnly MSregKey As Microsoft.Win32.RegistryKey

Microsoft's registry key object.

Property Details


FullName

C#: 
string FullName

VB: 
Property FullName() As String

Accessors:   get only

Returns the full name of the registry key.


ShortName

C#: 
string ShortName

VB: 
Property ShortName() As String

Accessors:   get only

Returns the name of just this registry key, relative to its parent.

Method Details


CreateSubKey

C#: 
NiceRegistryKey CreateSubKey(string nameOrPath)

VB: 
Function CreateSubKey(ByVal nameOrPath As String) As NiceRegistryKey

Parameters

nameOrPath  


DeleteSubKey

C#: 
Void DeleteSubKey(string nameOrPath,
    bool throwOnMissingSubkey)

VB: 
Function DeleteSubKey(ByVal nameOrPath As String, ByVal throwOnMissingSubkey As Boolean) As Void

Parameters

nameOrPath  
throwOnMissingSubkey  


DeleteSubKeyTree

C#: 
Void DeleteSubKeyTree(string nameOrPath)

VB: 
Function DeleteSubKeyTree(ByVal nameOrPath As String) As Void

Parameters

nameOrPath  


DeleteValue

C#: 
Void DeleteValue(string nameOrPath,
    bool throwOnMissingValue)

VB: 
Function DeleteValue(ByVal nameOrPath As String, ByVal throwOnMissingValue As Boolean) As Void

Parameters

nameOrPath  
throwOnMissingValue  


GetBoolValue

C#: 
Boolean GetBoolValue(string name,
    bool defaultValue)

VB: 
Function GetBoolValue(ByVal name As String, ByVal defaultValue As Boolean) As [Boolean]

Parameters

name  
defaultValue  


GetBoolValue

C#: 
Boolean GetBoolValue(string name)

VB: 
Function GetBoolValue(ByVal name As String) As [Boolean]

Parameters

name  


GetColorValue

C#: 
Color GetColorValue(string name)

VB: 
Function GetColorValue(ByVal name As String) As Color

Parameters

name  


GetColorValue

C#: 
Color GetColorValue(string name,
    System.Drawing.Color defaultValue)

VB: 
Function GetColorValue(ByVal name As String, ByVal defaultValue As System.Drawing.Color) As Color

Parameters

name  
defaultValue  


GetDecimalValue

C#: 
Decimal GetDecimalValue(string name,
    decimal defaultValue)

VB: 
Function GetDecimalValue(ByVal name As String, ByVal defaultValue As Decimal) As [Decimal]

Parameters

name  
defaultValue  


GetDecimalValue

C#: 
Decimal GetDecimalValue(string name)

VB: 
Function GetDecimalValue(ByVal name As String) As [Decimal]

Parameters

name  


GetEnumValue

C#: 
Object GetEnumValue(string name,
    System.Type enumType,
    object defaultValue)

VB: 
Function GetEnumValue(ByVal name As String, ByVal enumType As System.Type, ByVal defaultValue As Object) As [Object]

Parameters

name  
enumType  
defaultValue  


GetEnumValue

C#: 
Object GetEnumValue(string name,
    System.Type enumType)

VB: 
Function GetEnumValue(ByVal name As String, ByVal enumType As System.Type) As [Object]

Parameters

name  
enumType  


GetFontValue

C#: 
Font GetFontValue(string namePrefix,
    System.Drawing.Font defaultValue)

VB: 
Function GetFontValue(ByVal namePrefix As String, ByVal defaultValue As System.Drawing.Font) As Font

Parameters

namePrefix  
defaultValue  


GetFontValue

C#: 
Font GetFontValue(string namePrefix)

VB: 
Function GetFontValue(ByVal namePrefix As String) As Font

Parameters

namePrefix  


GetIntValue

C#: 
Int32 GetIntValue(string name)

VB: 
Function GetIntValue(ByVal name As String) As Int32

Parameters

name  


GetIntValue

C#: 
Int32 GetIntValue(string name,
    int defaultValue)

VB: 
Function GetIntValue(ByVal name As String, ByVal defaultValue As Integer) As Int32

Parameters

name  
defaultValue  


GetStringValue

C#: 
String GetStringValue(string name)

VB: 
Function GetStringValue(ByVal name As String) As [String]

Parameters

name  


GetStringValue

C#: 
String GetStringValue(string name,
    string defaultValue)

VB: 
Function GetStringValue(ByVal name As String, ByVal defaultValue As String) As [String]

Parameters

name  
defaultValue  


GetSubKeyNames

C#: 
String[] GetSubKeyNames()

VB: 
Function GetSubKeyNames() As [String]()


GetValueNames

C#: 
String[] GetValueNames()

VB: 
Function GetValueNames() As [String]()


OpenSubKey

C#: 
NiceRegistryKey OpenSubKey(string nameOrPath,
    bool writable)

VB: 
Function OpenSubKey(ByVal nameOrPath As String, ByVal writable As Boolean) As NiceRegistryKey

Parameters

nameOrPath  
writable  


OpenSubKey

C#: 
NiceRegistryKey OpenSubKey(string nameOrPath)

VB: 
Function OpenSubKey(ByVal nameOrPath As String) As NiceRegistryKey

Parameters

nameOrPath  


SetBoolValue

C#: 
Void SetBoolValue(string name,
    bool value)

VB: 
Function SetBoolValue(ByVal name As String, ByVal value As Boolean) As Void

Parameters

name  
value  


SetColorValue

C#: 
Void SetColorValue(string name,
    System.Drawing.Color value)

VB: 
Function SetColorValue(ByVal name As String, ByVal value As System.Drawing.Color) As Void

Parameters

name  
value  


SetDecimalValue

C#: 
Void SetDecimalValue(string name,
    decimal value)

VB: 
Function SetDecimalValue(ByVal name As String, ByVal value As Decimal) As Void

Parameters

name  
value  


SetEnumValue

C#: 
Void SetEnumValue(string name,
    object value)

VB: 
Function SetEnumValue(ByVal name As String, ByVal value As Object) As Void

Parameters

name  
value  


SetFontValue

C#: 
Void SetFontValue(string namePrefix,
    System.Drawing.Font value)

VB: 
Function SetFontValue(ByVal namePrefix As String, ByVal value As System.Drawing.Font) As Void

Parameters

namePrefix  
value  


SetIntValue

C#: 
Void SetIntValue(string name,
    int value)

VB: 
Function SetIntValue(ByVal name As String, ByVal value As Integer) As Void

Parameters

name  
value  


SetStringValue

C#: 
Void SetStringValue(string name,
    string value)

VB: 
Function SetStringValue(ByVal name As String, ByVal value As String) As Void

Parameters

name  
value  


generated by DocGenDotNet on 18 Nov 2008 6:35:01 PM