Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
Location
My.Computer.Registry.ClassesRoot Syntax
Dim result As Microsoft.Win32.RegistryKey = _ My.Computer.Registry.ClassesRoot
Description
The ClassesRoot property returns a Microsoft.Win32.RegistryKey object that refers to the HKEY_CLASSES_ROOT location in the Windows registry. This entry point is used primarily to store ActiveX class-specific information and Windows file associations. Usage at a Glance
Example
The following example displays all of the sub-elements of the HKEY_CLASSES_ROOT 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.ClassesRoot.GetSubKeyNames( )
Related Framework Entries
See Also
CurrentConfig Property, CurrentUser Property, DynData Property, GetValue Method, LocalMachine Property, PerformanceData Property, Registry Object, SetValue Method, Users Property |
Категории