We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

IVsUIElementPane.SaveUIElementState Method

Stores the state of the pane.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int SaveUIElementState(
	IStream pstream
)

Parameters

pstream
Type: Microsoft.VisualStudio.OLE.Interop.IStream
The stream to which to save the state.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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

Show: