MOTOBIT.COM - ASP upload, IIS utility numSubKeys Method of Key class

Method | Member of  RegEdit.Key | Changes | Purchase | Download

Description

The number of subkeys contained by the specified key.

Syntax

vnumSubKeys = Key.numSubKeys

Returns

Long

Remarks

numSubKeys property uses RegQueryInfoKey API function.

Examples

Number of classes.

  'Get RegEdit.Server object
  Set S = CreateObject("RegEdit.Server")

  'Number of classes.
  Wscript.Echo S.GetKey("HKCR").numSubKeys

  'Same as
  Wscript.Echo S.GetKey("HKCR").SubKeys.Count

See also

Keys.Count

Other links for numSubKeys

Methods of Key class

Close, CreateKey, Delete, ExistsKey, ExistsValue, Flush, numSubKeys, numValues, Save

Properties of Key class

Class, hKey, LastWriteTime, Name, SubKeys, Values

RegEdit.Key

One registry key.

RegEdit

Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz