Condividi tramite


IVsPersistSolutionProps.LoadUserOptions Method (IVsSolutionPersistence, UInt32)

Loads user options for a given solution.

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

Syntax

'Dichiarazione
Function LoadUserOptions ( _
    pPersistence As IVsSolutionPersistence, _
    grfLoadOpts As UInteger _
) As Integer
'Utilizzo
Dim instance As IVsPersistSolutionProps
Dim pPersistence As IVsSolutionPersistence
Dim grfLoadOpts As UInteger
Dim returnValue As Integer

returnValue = instance.LoadUserOptions(pPersistence, _
    grfLoadOpts)
int LoadUserOptions(
    IVsSolutionPersistence pPersistence,
    uint grfLoadOpts
)
int LoadUserOptions(
    [InAttribute] IVsSolutionPersistence^ pPersistence, 
    [InAttribute] unsigned int grfLoadOpts
)
abstract LoadUserOptions : 
        pPersistence:IVsSolutionPersistence * 
        grfLoadOpts:uint32 -> int 
function LoadUserOptions(
    pPersistence : IVsSolutionPersistence, 
    grfLoadOpts : uint
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsPersistSolutionOpts.LoadUserOptions(IVsSolutionPersistence, UInt32)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistSolutionProps::LoadUserOptions(
   [in] IVsSolutionPersistence *pPersistence,
   [in] VSLOADUSEROPTS grfLoadOpts
);

This method is invoked by the environment each time a VSPackage invokes the LoadPackageUserOpts method.

.NET Framework Security

See Also

Reference

IVsPersistSolutionProps Interface

IVsPersistSolutionProps Members

LoadUserOptions Overload

Microsoft.VisualStudio.Shell.Interop Namespace