CurrentConfig Property


CurrentConfig Property

Location

My.Computer.Registry.CurrentConfig

Syntax

     Dim result As Microsoft.Win32.RegistryKey = _        My.Computer.Registry.CurrentConfig 

Description

The CurrentConfig property returns a Microsoft.Win32.RegistryKey object that refers to the HKEY_CURRENT_CONFIG location in the Windows registry. This entry point is used primarily to store device-specific settings for the local computer.

Usage at a Glance

  • This property is read-only.

  • You must have sufficient security permissions to read or write keys and values in the registry.

Example

The following example displays all of the sub-elements of the HKEY_CURRENT_CONFIG registry key element in a listbox control. The example assumes that you are using this code on a form with a defined ListBox1 control.

     ListBox1.DataSource = My.Computer.Registry. _        CurrentConfig.GetSubKeyNames(  ) 

Related Framework Entries

  • Microsoft.VisualBasic.MyServices.RegistryProxy.CurrentConfig Property

  • Microsoft.Win32.Registry.CurrentConfig Property

See Also

ClassesRoot Property, CurrentUser Property, DynData Property, GetValue Method, LocalMachine Property, PerformanceData Property, Registry Object, SetValue Method, Users Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net