PropertyGrid.IComPropertyBrowser.SaveState(RegistryKey) 方法

定义

将用户状态从 PropertyGrid 控件保存到注册表。 有关此成员的说明,请参见 SaveState(RegistryKey)

 virtual void System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState(Microsoft::Win32::RegistryKey ^ optRoot) = System::Windows::Forms::ComponentModel::Com2Interop::IComPropertyBrowser::SaveState;
 virtual void System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState(Microsoft::Win32::RegistryKey ^ key) = System::Windows::Forms::ComponentModel::Com2Interop::IComPropertyBrowser::SaveState;
void IComPropertyBrowser.SaveState (Microsoft.Win32.RegistryKey optRoot);
void IComPropertyBrowser.SaveState (Microsoft.Win32.RegistryKey key);
abstract member System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState : Microsoft.Win32.RegistryKey -> unit
override this.System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState : Microsoft.Win32.RegistryKey -> unit
abstract member System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState : Microsoft.Win32.RegistryKey -> unit
override this.System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState : Microsoft.Win32.RegistryKey -> unit
Sub SaveState (optRoot As RegistryKey) Implements IComPropertyBrowser.SaveState
Sub SaveState (key As RegistryKey) Implements IComPropertyBrowser.SaveState

参数

optRootkey
RegistryKey

包含用户状态的注册表项。

实现

注解

此成员是显式接口成员的实现。 它只能在 PropertyGrid 实例被强制转换为 IComPropertyBrowser 接口时使用。

Visual Studio 2005 会将某些PropertyGrid控件状态(例如PropertySortHelpVisible属性)保存到注册表,并在用户下次运行应用程序时加载它们。

适用于