Saves solution properties to its .sln file.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
Function SaveSolutionProps ( _
pHierarchy As IVsHierarchy, _
pPersistence As IVsSolutionPersistence _
) As Integer
'使用
Dim instance As IVsPersistSolutionProps
Dim pHierarchy As IVsHierarchy
Dim pPersistence As IVsSolutionPersistence
Dim returnValue As Integer
returnValue = instance.SaveSolutionProps(pHierarchy, _
pPersistence)
int SaveSolutionProps(
IVsHierarchy pHierarchy,
IVsSolutionPersistence pPersistence
)
int SaveSolutionProps(
[InAttribute] IVsHierarchy^ pHierarchy,
[InAttribute] IVsSolutionPersistence^ pPersistence
)
function SaveSolutionProps(
pHierarchy : IVsHierarchy,
pPersistence : IVsSolutionPersistence
) : int
Parameters
pHierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[in] Pointer to the IVsHierarchy interface.
pPersistence
Type: Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence[in] Pointer to the IVsSolutionPersistence interface.
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::SaveSolutionProps(
[in] IVsHierarchy *pHierarchy,
[in] IVsSolutionPersistence *pPersistence
);
Permissions
- 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.
See Also
Reference
IVsPersistSolutionProps Interface