Condividi tramite


IVsUIElementPane.LoadUIElementState(IStream) Method

Definition

Loads custom state storage.

public:
 int LoadUIElementState(Microsoft::VisualStudio::OLE::Interop::IStream ^ pstream);
public:
 int LoadUIElementState(Microsoft::VisualStudio::OLE::Interop::IStream ^ pstream);
int LoadUIElementState(Microsoft::VisualStudio::OLE::Interop::IStream const & pstream);
public int LoadUIElementState (Microsoft.VisualStudio.OLE.Interop.IStream pstream);
abstract member LoadUIElementState : Microsoft.VisualStudio.OLE.Interop.IStream -> int
Public Function LoadUIElementState (pstream As IStream) As Integer

Parameters

pstream
IStream

The stream from which to load the state.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Implement this method to load 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