ServerComputer.Registry 屬性

定義

取得一個物件,提供操作登錄檔的屬性與方法。

public:
 property Microsoft::VisualBasic::MyServices::RegistryProxy ^ Registry { Microsoft::VisualBasic::MyServices::RegistryProxy ^ get(); };
public Microsoft.VisualBasic.MyServices.RegistryProxy Registry { get; }
member this.Registry : Microsoft.VisualBasic.MyServices.RegistryProxy
Public ReadOnly Property Registry As RegistryProxy

屬性值

電腦的 My.Computer.Registry 目標。

範例

此範例讀取該HKEY_CURRENT_USER\Software\MyAppName並顯示在訊息框中。

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

備註

此特性讓物件易於存取 RegistryProxy

適用於

另請參閱