IRegistryKey Method: IsContainer

IsContainer
(
) As Boolean;

Parameters
None

Description
Returns True if an object is a key and False if it is a value.

Example

Dim RegistryKey As IRegistryKey
Set RegistryKey== GetObject("NTDS://DomainName/MachineName/reg_services/HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\5.0")
Debug.Print RegistryKey.IsContainer 'Prints True
Set RegistryKey = GetObject("NTDS://DomainName/MachineName/reg_services/HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic")
Debug.Print RegistryKey.IsContainer 'Prints True

 

See Also: