I am trying to loop through a key to get all values. For some reason this returns nothing

Code:
Dim RegKey2 As RegistryKey = Registry.LocalMachine.OpenSubKey("Software\Company\Startup")
        Dim subname() = RegKey2.GetSubKeyNames
        MsgBox(subname.Length)
Yes, the key is there and it has 2 values in it. What am I doing wrong?