Επεξεργασία

Κοινή χρήση μέσω


PropertyGrid.IComPropertyBrowser.SaveState(RegistryKey) Method

Definition

Saves user states from the PropertyGrid control to the registry. For a description of this member, see 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);
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

Parameters

optRootkey
RegistryKey

The registry key that contains the user states.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the PropertyGrid instance is cast to an IComPropertyBrowser interface.

Visual Studio 2005 saves some of the PropertyGrid control states, such as the PropertySort and HelpVisible properties, to the registry and loads them the next time the user runs the application.

Applies to