Retrieves the count of subkeys of the current key.
Assembly: mscorlib (in mscorlib.dll)
The user does not have read permission for the key.
The RegistryKey being manipulated is closed (closed keys cannot be accessed).
The user does not have the necessary registry rights.
A system error occurred, for example the current key has been deleted.
This property does not recursively count names. It only returns the count of names on the base level from which it was called.
Available since 1.1