IVsLibrary::SaveState Method (IStream^, LIB_PERSISTTYPE)
Visual Studio 2015
Asks the library to save its persisted global Browse Containers.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pIStream
-
Type:
Microsoft.VisualStudio.OLE.Interop::IStream^
[in] Pointer to an IStream interface.
- lptType
-
Type:
Microsoft.VisualStudio.Shell.Interop::LIB_PERSISTTYPE
[in] Specifies the persisted type of the library. Always LPT_GLOBAL from the LIB_PERSISTTYPE enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsLibrary::SaveState( [in] IStream *pIStream, [in] LIB_PERSISTTYPE lptType );
The environment will call 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 will always be LPT_GLOBAL. Fill pIStream with whatever library information you choose to persist.
Show: