NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RegistryKey.SubKeyCount

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;

Exceptions

Exception Type Condition
SecurityException If the user does not have read permission for the key.

Remarks

This property finds subkeys only at the base level, and does not recurse to lower levels.

See Also

RegistryKey Class | RegistryKey Members | Microsoft.Win32 Namespace