This documentation is archived and is not being maintained.

IVsPersistSolutionProps.WriteSolutionProps Method

Writes solution properties to the .sln file.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in

int WriteSolutionProps (
	[InAttribute] IVsHierarchy pHierarchy,
	[InAttribute] string pszKey,
	[InAttribute] IPropertyBag pPropBag
int WriteSolutionProps (
	/** @attribute InAttribute() */ IVsHierarchy pHierarchy, 
	/** @attribute InAttribute() */ String pszKey, 
	/** @attribute InAttribute() */ IPropertyBag pPropBag
function WriteSolutionProps (
	pHierarchy : IVsHierarchy, 
	pszKey : String, 
	pPropBag : IPropertyBag
) : int



[in] Pointer to the IVsHierarchy interface.


[in] Name of the set of properties, the property bag.


[in] Pointer to the IPropertyBag interface to which the property name/value pairs are written.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsPersistSolutionProps::WriteSolutionProps(
   [in] IVsHierarchy *pHierarchy,
   [in] LPCOLESTR pszKey,
   [in] IPropertyBag *pPropBag