Retrieves the count of subkeys.
[Visual Basic] Public ReadOnly Property SubKeyCount As Integer [C#] public int SubKeyCount {get;} [C++] public: __property int get_SubKeyCount(); [JScript] public function get SubKeyCount() : int;
Exception Type | Condition |
---|---|
SecurityException | If the user does not have read permission for the key. |
This property finds subkeys only at the base level, and does not recurse to lower levels.
RegistryKey Class | RegistryKey Members | Microsoft.Win32 Namespace