IVsSolutionPersistence::SavePackageSolutionProps Method (Int32, IVsHierarchy^, IVsPersistSolutionProps^, String^)
Visual Studio 2015
Writes properties to the solution .sln file.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int SavePackageSolutionProps( int fPreLoad, IVsHierarchy^ pHierarchy, IVsPersistSolutionProps^ ppSP, String^ pszKey )
Parameters
- fPreLoad
-
Type:
System::Int32
[in] true if the solution properties are to be pre-loaded.
- pHierarchy
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] Pointer to the IVsHierarchy interface. A null value indicates the global section of the solution file is to be saved.
- ppSP
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsPersistSolutionProps^
[in] Pointer to the IVsPersistSolutionProps interface.
- pszKey
-
Type:
System::String^
[in] Name of the solution file section (the property bag) for which the properties should be written.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
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
Show: