System.Registry.hasSubKeys() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to System.Registry Class Summary

Availability
Windows

Usage
mdm.System.Registry.hasSubKeys(keyBranchID:Number, keyName:String):Boolean

Parameters
keyBranchID:Number - Branch key ID

keyName:String - Key name to search

Returns
A Boolean

Description
Returns a boolean indicating whether or not there are any Sub Keys in the specified location.

Notes
The key branch ID can be:

'1' - HKEY_CLASSES_ROOT
'2' - HKEY_CURRENT_USER
'3' - HKEY_LOCAL_MACHINE
'4' - HKEY_USERS
'5' - HKEY_CURRENT_CONFIG

Example Code
var hasSubkeys:Boolean = mdm.System.Registry.hasSubKeys(2, "\\SOFTWARE\\NewKey\\SubKey");

mdm.System.Registry Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page