Compartir a través de


IVsSolutionPersistence.LoadPackageUserOpts Method

Enables the loading of package-level user options that are stored in one or more named streams in the solution .sln file. This method allows the caller to name the option stream (or streams) to be loaded.

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

Syntax

'Declaration
Function LoadPackageUserOpts ( _
    pPSO As IVsPersistSolutionOpts, _
    pszKey As String _
) As Integer
int LoadPackageUserOpts(
    IVsPersistSolutionOpts pPSO,
    string pszKey
)
int LoadPackageUserOpts(
    [InAttribute] IVsPersistSolutionOpts^ pPSO, 
    [InAttribute] String^ pszKey
)
abstract LoadPackageUserOpts : 
        pPSO:IVsPersistSolutionOpts * 
        pszKey:string -> int
function LoadPackageUserOpts(
    pPSO : IVsPersistSolutionOpts, 
    pszKey : String
) : int

Parameters

  • pszKey
    Type: String

    [in] Name of the stream to be opened in the options file storage.

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

The method provides an intermediary function for IVsPersistSolutionOpts to call to obtain stream names it needs to implement its ReadUserOptions method.

.NET Framework Security

See Also

Reference

IVsSolutionPersistence Interface

Microsoft.VisualStudio.Shell.Interop Namespace