Xceed Real-Time Zip for .NET Documentation
RegistryKey Constructor


Xceed.Zip Assembly > Xceed.Zip.Sfx Namespace > RegistryKey Class : RegistryKey Constructor
Represents the registry key to add a value to. It can begin with HKCR, HKCU, HKLM, HKU, HKPD, HKDD or HKCC, or by the long version of each registry key root: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, etc. The 16-bit self-extractor binary only supports HKCR and HKEY_CLASSES_ROOT.
Represents the name of the value to add. If left empty, then the "(default)" value will be added/changed.
Represents the value to set. If a number is specified, then the value will be set to number of type REG_DWORD. If a string is specified, the value will be set to a string of type REG_SZ. For any other type of object, ToString is called on the object, and the value will be set to a string of type REG_SZ.
Initializes a new instance of the RegistryKey class specifying the registry key name, the value name and the value.
Syntax
'Declaration
 
Public Function New( _

   ByVal keyName As String, _

   ByVal valueName As String, _

   ByVal value As Object _

)
'Usage
 
Dim keyName As String

Dim valueName As String

Dim value As Object

 

Dim instance As New RegistryKey(keyName, valueName, value)
public RegistryKey( 

   string keyName,

   string valueName,

   object value

)

Parameters

keyName
Represents the registry key to add a value to. It can begin with HKCR, HKCU, HKLM, HKU, HKPD, HKDD or HKCC, or by the long version of each registry key root: HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, etc. The 16-bit self-extractor binary only supports HKCR and HKEY_CLASSES_ROOT.
valueName
Represents the name of the value to add. If left empty, then the "(default)" value will be added/changed.
value
Represents the value to set. If a number is specified, then the value will be set to number of type REG_DWORD. If a string is specified, the value will be set to a string of type REG_SZ. For any other type of object, ToString is called on the object, and the value will be set to a string of type REG_SZ.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RegistryKey Class
RegistryKey Members