IVsLibrary2.SaveState(IStream, LIB_PERSISTTYPE) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Demande à la bibliothèque d'enregistrer ses conteneurs Browse globaux persistants.
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
Paramètres
- lptType
- LIB_PERSISTTYPE
[in] Spécifie le type persistant de la bibliothèque. Toujours LPT_GLOBAL de l'énumération LIB_PERSISTTYPE.
Retours
Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.
Remarques
Signature COM
À partir de vsshell80. idl :
HRESULT IVsLibrary2::SaveState(
[in] IStream *pIStream,
[in] LIB_PERSISTTYPE lptType
);
L’environnement appelle cette méthode pour indiquer que les informations de conteneur de navigation doivent être persistantes. Cette méthode est explicite uniquement pour les bibliothèques qui fournissent des conteneurs de navigation globaux. Par conséquent, le lptType paramètre est toujours LPT_GLOBAL . Remplissez l' IStream objet spécifié dans le pIStream paramètre avec toutes les informations de bibliothèque que vous choisissez de conserver.