WindowPane.IVsWindowPane.SaveViewState Method
Saves the loaded view state.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
‘선언
Private Function SaveViewState ( _
pstream As IStream _
) As Integer Implements IVsWindowPane.SaveViewState
‘사용 방법
Dim instance As WindowPane
Dim pstream As IStream
Dim returnValue As Integer
returnValue = CType(instance, IVsWindowPane).SaveViewState(pstream)
int IVsWindowPane.SaveViewState(
IStream pstream
)
private:
virtual int SaveViewState(
IStream^ pstream
) sealed = IVsWindowPane::SaveViewState
private abstract SaveViewState :
pstream:IStream -> int
private override SaveViewState :
pstream:IStream -> int
JScript does not support explicit interface implementations.
Parameters
- pstream
Type: Microsoft.VisualStudio.OLE.Interop.IStream
The IStream to which to save the view state.
Return Value
Type: System.Int32
When implemented by derived classes, if the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsWindowPane.SaveViewState(IStream)
Remarks
By default, this method releases the reference to the stream object and returns E_NOTIMPL.
.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.