ServerComputer::Registry Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an object that provides properties and methods for manipulating the registry.

Namespace:   Microsoft.VisualBasic.Devices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public:
property RegistryProxy^ Registry {
	RegistryProxy^ get();
}

Property Value

Type: Microsoft.VisualBasic.MyServices::RegistryProxy^

The My.Computer.Registry object for the computer.

This property provides easy access to the RegistryProxy object.

This example reads the value Name from HKEY_CURRENT_USER\Software\MyApp and displays it in a message box.

Dim readValue As Object
readValue = My.Computer.Registry.GetValue(
  "HKEY_CURRENT_USER\Software\MyApp", "Name", Nothing)
MsgBox("The value is " & CStr(readValue))

.NET Framework
Available since 2.0
Return to top
Show: