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 アクセスできます。

適用対象

こちらもご覧ください