IVsSolutionPersistence.SavePackageUserOpts Method

Writes user options to the solution file. Saves package-level user options to one or more named streams in the solution .sln file.

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

Syntax

'Declaration
Function SavePackageUserOpts ( _
    pPSO As IVsPersistSolutionOpts, _
    pszKey As String _
) As Integer
'Usage
Dim instance As IVsSolutionPersistence 
Dim pPSO As IVsPersistSolutionOpts 
Dim pszKey As String 
Dim returnValue As Integer 

returnValue = instance.SavePackageUserOpts(pPSO, _
    pszKey)
int SavePackageUserOpts(
    IVsPersistSolutionOpts pPSO,
    string pszKey
)
int SavePackageUserOpts(
    [InAttribute] IVsPersistSolutionOpts^ pPSO, 
    [InAttribute] String^ pszKey
)
function SavePackageUserOpts(
    pPSO : IVsPersistSolutionOpts, 
    pszKey : String
) : int

Parameters

  • pszKey
    Type: System.String

    [in] Name of the stream to which options are to be saved.

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 IVsSolutionPersistence::SavePackageUserOpts(
   [in] IVsPersistSolutionOpts *pPSO,
   [in] LPCOLESTR pszKey
);

.NET Framework Security

See Also

Reference

IVsSolutionPersistence Interface

IVsSolutionPersistence Members

Microsoft.VisualStudio.Shell.Interop Namespace