Share via


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 物件。

範例

此範例會從讀取值NameHKEY_CURRENT_USER\Software\MyApp,並將其顯示在消息框中。

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

備註

這個屬性可讓您輕鬆存取 RegistryProxy 物件。

適用於

另請參閱