IVsSimpleLibrary2.SaveState(IStream, LIB_PERSISTTYPE) 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.
Asks the library to save its persisted global Browse Containers.
public:
int SaveState(Microsoft::VisualStudio::OLE::Interop::IStream ^ pIStream, Microsoft::VisualStudio::Shell::Interop::LIB_PERSISTTYPE lptType);
public:
int SaveState(Microsoft::VisualStudio::OLE::Interop::IStream ^ pIStream, Microsoft::VisualStudio::Shell::Interop::LIB_PERSISTTYPE lptType);
int SaveState(Microsoft::VisualStudio::OLE::Interop::IStream const & pIStream, Microsoft::VisualStudio::Shell::Interop::LIB_PERSISTTYPE lptType);
public int SaveState (Microsoft.VisualStudio.OLE.Interop.IStream pIStream, Microsoft.VisualStudio.Shell.Interop.LIB_PERSISTTYPE lptType);
abstract member SaveState : Microsoft.VisualStudio.OLE.Interop.IStream * Microsoft.VisualStudio.Shell.Interop.LIB_PERSISTTYPE -> int
Public Function SaveState (pIStream As IStream, lptType As LIB_PERSISTTYPE) As Integer
Parameters
- lptType
- LIB_PERSISTTYPE
[in] Specifies the persisted type of the library. Always LPT_GLOBAL from the LIB_PERSISTTYPE enumeration.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell80.idl:
HRESULT IVsSimpleLibrary2::SaveState(
[in] IStream *pIStream,
[in] LIB_PERSISTTYPE lptType
);
The environment calls this method to indicate that browse container information should be persisted. This method is meaningful only for libraries providing global browse containers. As such, the lptType
parameter is always LPT_GLOBAL. Fill the IStream object given in the pIStream
parameter with whatever library information you choose to persist.