'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.