Condividi tramite


SimpleEditorView.SaveViewState Method

Saves the loaded view state.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Dichiarazione
Public Overridable Function SaveViewState ( _
    stream As IStream _
) As Integer
'Utilizzo
Dim instance As SimpleEditorView
Dim stream As IStream
Dim returnValue As Integer

returnValue = instance.SaveViewState(stream)
public virtual int SaveViewState(
    IStream stream
)
public:
virtual int SaveViewState(
    IStream^ stream
)
abstract SaveViewState : 
        stream:IStream -> int 
override SaveViewState : 
        stream:IStream -> int 
public function SaveViewState(
    stream : IStream
) : int

Parameters

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 returns S_OK.

.NET Framework Security

See Also

Reference

SimpleEditorView Class

SimpleEditorView Members

Microsoft.VisualStudio.Package Namespace