IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) Method

Definition

Writes properties to the solution .sln file.

public:
 int SavePackageSolutionProps(int fPreLoad, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionProps ^ ppSP, System::String ^ pszKey);
public:
 int SavePackageSolutionProps(int fPreLoad, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionProps ^ ppSP, Platform::String ^ pszKey);
int SavePackageSolutionProps(int fPreLoad, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionProps const & ppSP, std::wstring const & pszKey);
public int SavePackageSolutionProps (int fPreLoad, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionProps ppSP, string pszKey);
abstract member SavePackageSolutionProps : int * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionProps * string -> int
Public Function SavePackageSolutionProps (fPreLoad As Integer, pHierarchy As IVsHierarchy, ppSP As IVsPersistSolutionProps, pszKey As String) As Integer

Parameters

fPreLoad
Int32 Int32 Int32 Int32 Int32 Int32

[in] true if the solution properties are to be pre-loaded.

pHierarchy
IVsHierarchy IVsHierarchy IVsHierarchy IVsHierarchy IVsHierarchy IVsHierarchy

[in] Pointer to the IVsHierarchy interface. A null value indicates the global section of the solution file is to be saved.

pszKey
String String String String String String

[in] Name of the solution file section (the property bag) for which the properties should be written.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionPersistence::SavePackageSolutionProps(  
   [in] BOOL fPreLoad,  
   [in] IVsHierarchy *pHierarchy,  
   [in] IVsPersistSolutionProps *pPSP,  
   [in] LPCOLESTR pszKey  
);  

Use this method to obtain the property bag name to be used with WriteSolutionProps

Applies to