IVsLibrary.SaveState Method

Asks the library to save its persisted global Browse Containers.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function SaveState ( _
    pIStream As IStream, _
    lptType As LIB_PERSISTTYPE _
) As Integer
int SaveState(
    IStream pIStream,
    LIB_PERSISTTYPE lptType
)
int SaveState(
    [InAttribute] IStream^ pIStream, 
    [InAttribute] LIB_PERSISTTYPE lptType
)
abstract SaveState : 
        pIStream:IStream * 
        lptType:LIB_PERSISTTYPE -> int
function SaveState(
    pIStream : IStream, 
    lptType : LIB_PERSISTTYPE
) : int

Parameters

Return Value

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

Remarks

COM Signature

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.

.NET Framework Security

See Also

Reference

IVsLibrary Interface

Microsoft.VisualStudio.Shell.Interop Namespace