When implemented in a derived class, loads the view state of the window pane.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function LoadViewState ( _
stream As IStream _
) As Integer
'使用
Dim instance As SimpleEditorView
Dim stream As IStream
Dim returnValue As Integer
returnValue = instance.LoadViewState(stream)
public virtual int LoadViewState(
IStream stream
)
public:
virtual int LoadViewState(
IStream^ stream
)
public function LoadViewState(
stream : IStream
) : int
Parameters
stream
Type: Microsoft.VisualStudio.OLE.Interop.IStreamThe IStream from which to load the state of the view.
Return Value
Type: System.Int32
When implemented in a derived class, S_OK if the method succeeds, otherwise an error code.
Implements
IVsWindowPane.LoadViewState(IStream)
Remarks
This method as implemented in this class does nothing and returns S_OK.
Permissions
- 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.