Condividi tramite


IVsUIElementPane.SaveUIElementState(IStream) Method

Definition

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

Applies to