IVsSolutionPersistence.SavePackageSolutionProps 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, Platform::String ^ pszKey);

Parameters

fPreLoad
Int32

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

pHierarchy
IVsHierarchy

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

ppSP
IVsPersistSolutionProps

[in] Pointer to the IVsPersistSolutionProps interface.

pszKey
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

This method must be accessed on the main thread.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022