Xceed .NET Libraries Documentation
Xceed.Zip Assembly / Xceed.Zip.Sfx Namespace / RegistryKeyList Class / Add Method / Add(String,String,Object) Method
The name of the registry key.
The name of the registry key value.
The value of the registry key. 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.


In This Topic
    Add(String,String,Object) Method
    In This Topic
    Adds a registry key to the list specifying the key name and value.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal keyName As String, _
       ByVal valueName As String, _
       ByVal value As Object _
    ) As Integer
    'Usage
     
    
    Dim instance As RegistryKeyList
    Dim keyName As String
    Dim valueName As String
    Dim value As Object
    Dim value As Integer
     
    value = instance.Add(keyName, valueName, value)

    Parameters

    keyName
    The name of the registry key.
    valueName
    The name of the registry key value.
    value
    The value of the registry key. 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.

    Return Value

    The zero-based index at which the registry key was added.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also