Bagikan melalui


IVsUIElementPane.LoadUIElementState Method

Loads custom state storage.

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

Syntax

'Declaration
Function LoadUIElementState ( _
    pstream As IStream _
) As Integer
int LoadUIElementState(
    IStream pstream
)
int LoadUIElementState(
    [InAttribute] IStream^ pstream
)
abstract LoadUIElementState : 
        pstream:IStream -> int 
function LoadUIElementState(
    pstream : IStream
) : int

Parameters

Return Value

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

Remarks

Implement this method to load any custom state that must be persisted across sessions. This may include the selected items, caret position, data connections, and other aspects of the pane.

.NET Framework Security

See Also

Reference

IVsUIElementPane Interface

Microsoft.VisualStudio.Shell.Interop Namespace