Compartir a través de


IVsPersistSolutionProps.ReadUserOptions Method (IStream, String)

Reads user options for a given solution.

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

Syntax

'Declaración
Function ReadUserOptions ( _
    pOptionsStream As IStream, _
    pszKey As String _
) As Integer
'Uso
Dim instance As IVsPersistSolutionProps
Dim pOptionsStream As IStream
Dim pszKey As String
Dim returnValue As Integer

returnValue = instance.ReadUserOptions(pOptionsStream, _
    pszKey)
int ReadUserOptions(
    IStream pOptionsStream,
    string pszKey
)
int ReadUserOptions(
    [InAttribute] IStream^ pOptionsStream, 
    [InAttribute] String^ pszKey
)
abstract ReadUserOptions : 
        pOptionsStream:IStream * 
        pszKey:string -> int 
function ReadUserOptions(
    pOptionsStream : IStream, 
    pszKey : String
) : 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.ReadUserOptions(IStream, String)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPersistSolutionProps::ReadUserOptions(
   [in] IStream *pOptionsStream,
   [in] LPCOLESTR pszKey
);

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

ReadUserOptions Overload

Microsoft.VisualStudio.Shell.Interop Namespace