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

'宣言
Function WriteSolutionProps ( _
    pHierarchy As IVsHierarchy, _
    pszKey As String, _
    pPropBag As IPropertyBag _
) As Integer
'使用
Dim instance As IVsPersistSolutionProps
Dim pHierarchy As IVsHierarchy
Dim pszKey As String
Dim pPropBag As IPropertyBag
Dim returnValue As Integer

returnValue = instance.WriteSolutionProps(pHierarchy, _
    pszKey, pPropBag)
int WriteSolutionProps(
    IVsHierarchy pHierarchy,
    string pszKey,
    IPropertyBag pPropBag
)
int WriteSolutionProps(
    [InAttribute] IVsHierarchy^ pHierarchy, 
    [InAttribute] String^ pszKey, 
    [InAttribute] IPropertyBag^ pPropBag
)
function WriteSolutionProps(
    pHierarchy : IVsHierarchy, 
    pszKey : String, 
    pPropBag : IPropertyBag
) : int

Parameters

  • pszKey
    Type: System.String

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

Return Value

Type: System.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
);

Permissions

See Also

Reference

IVsPersistSolutionProps Interface

IVsPersistSolutionProps Members

Microsoft.VisualStudio.Shell.Interop Namespace