Udostępnij za pośrednictwem


IVsLibrary2.SaveState(IStream, LIB_PERSISTTYPE) Method

Definition

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

pIStream
IStream

[in] Pointer to an IStream interface.

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 IVsLibrary2::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.

Applies to