Condividi tramite


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, 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

[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