IVsUIElementPane.SaveUIElementState Method
Stores the state of the pane.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assemblies: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function SaveUIElementState ( _
pstream As IStream _
) As Integer
int SaveUIElementState(
IStream pstream
)
int SaveUIElementState(
[InAttribute] IStream^ pstream
)
abstract SaveUIElementState :
pstream:IStream -> int
function SaveUIElementState(
pstream : IStream
) : int
Parameters
pstream
Type: Microsoft.VisualStudio.OLE.Interop.IStreamThe stream to which to save the state.
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 save 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.