返回或为 Microsoft Windows 注册表中下列子键下的条目设置 String 值:
HKEY_CURRENT_USER\Software\Microsoft\FrontPage\
expression.ProfileString(RegistrySection, RegistryKey)
expression 必选。返回 System 对象的表达式。
RegistrySection 必选,String 类型。Windows 注册表中“HKEY_CURRENT_USERS\Software\MicrosoftFrontPage\”子键下的子键。
RegistryKey 必选,String 类型。由 szSection 指定的子键条目名称。例如,注册表编辑器中的 Software 或 Network 就是子键。
本示例返回 Recently Used URLs 条目中子键的值,即 0(零)。
注意 若要运行本示例,必须最近打开过一个存在于某一站点中的网页。
Private Sub GetRegRecentlyUsedInfo()
Dim mySecKey As String
Dim myRegKey As String
Dim myProfile As String
mySecKey = "HKEY_CURRENT_USER\Software"
mySecKey = mySecKey & _
"\Microsoft\FrontPage\Editor\Recently Used URLs"
myRegKey = "0"
myProfile = System.ProfileString(mySecKey, myRegKey)
End Sub