IVsPersistSolutionProps.WriteSolutionProps Method
Writes solution properties to the .sln file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function WriteSolutionProps ( _
pHierarchy As IVsHierarchy, _
pszKey As String, _
pPropBag As IPropertyBag _
) As Integer
int WriteSolutionProps(
IVsHierarchy pHierarchy,
string pszKey,
IPropertyBag pPropBag
)
int WriteSolutionProps(
[InAttribute] IVsHierarchy^ pHierarchy,
[InAttribute] String^ pszKey,
[InAttribute] IPropertyBag^ pPropBag
)
abstract WriteSolutionProps :
pHierarchy:IVsHierarchy *
pszKey:string *
pPropBag:IPropertyBag -> int
function WriteSolutionProps(
pHierarchy : IVsHierarchy,
pszKey : String,
pPropBag : IPropertyBag
) : int
Parameters
pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] Pointer to the IVsHierarchy interface.
pszKey
Type: String[in] Name of the set of properties, the property bag.
pPropBag
Type: Microsoft.VisualStudio.OLE.Interop.IPropertyBag[in] Pointer to the IPropertyBag interface to which the property name/value pairs are written.
Return Value
Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsPersistSolutionProps::WriteSolutionProps(
[in] IVsHierarchy *pHierarchy,
[in] LPCOLESTR pszKey,
[in] IPropertyBag *pPropBag
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.