IVsPersistSolutionProps.WriteSolutionProps Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes solution properties to the .sln file.
public:
int WriteSolutionProps(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, System::String ^ pszKey, Microsoft::VisualStudio::OLE::Interop::IPropertyBag ^ pPropBag);
public:
int WriteSolutionProps(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Platform::String ^ pszKey, Microsoft::VisualStudio::OLE::Interop::IPropertyBag ^ pPropBag);
int WriteSolutionProps(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, std::wstring const & pszKey, Microsoft::VisualStudio::OLE::Interop::IPropertyBag const & pPropBag);
public int WriteSolutionProps (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, string pszKey, Microsoft.VisualStudio.OLE.Interop.IPropertyBag pPropBag);
abstract member WriteSolutionProps : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * Microsoft.VisualStudio.OLE.Interop.IPropertyBag -> int
Public Function WriteSolutionProps (pHierarchy As IVsHierarchy, pszKey As String, pPropBag As IPropertyBag) As Integer
Parameters
- pHierarchy
- IVsHierarchy
[in] Pointer to the IVsHierarchy interface.
- pszKey
- String
[in] Name of the set of properties, the property bag.
- pPropBag
- IPropertyBag
[in] Pointer to the IPropertyBag interface to which the property name/value pairs are written.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
Implementors of this method are expected to be safe to be accesssed from any thread if its owner is passed to IVsSolutionPersistence on a background thread.