舉例:

using System;
using Microsoft.Win32;
// ...
string keyName = @"HKEY_CURRENT_USER\Software\Microsoft\..."  // 相當於目錄.
string manifestValue = (string) Microsoft.Win32.Registry.GetValue( keyName, "Manifest", null );  // 相當於檔案'Manifest'.

參考:Registry.GetValue 方法 (String, String, Object)

 

arrow
arrow

    Robert 發表在 痞客邦 留言(0) 人氣()