IVsUIElementPane.SaveUIElementState(IStream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Stores the state of the pane.
public:
int SaveUIElementState(Microsoft::VisualStudio::OLE::Interop::IStream ^ pstream);
public:
int SaveUIElementState(Microsoft::VisualStudio::OLE::Interop::IStream ^ pstream);
int SaveUIElementState(Microsoft::VisualStudio::OLE::Interop::IStream const & pstream);
public int SaveUIElementState (Microsoft.VisualStudio.OLE.Interop.IStream pstream);
abstract member SaveUIElementState : Microsoft.VisualStudio.OLE.Interop.IStream -> int
Public Function SaveUIElementState (pstream As IStream) As Integer
Parameters
- pstream
- IStream
The stream to which to save the state.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Implement this method to save any custom state that must be persisted across sessions. This may include the selected items, caret position, data connections, and other aspects of the pane