Compartilhar via


SimpleEditorView.OnEnterState Method

Notifies the view when the application enters or exits a given state.

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

Syntax

'Declaração
Public Overridable Sub OnEnterState ( _
    uStateID As UInteger, _
    fEnter As Integer _
)
public virtual void OnEnterState(
    uint uStateID,
    int fEnter
)

Parameters

  • fEnter
    Type: System.Int32
    true if the application is entering the specified state, false if it is exiting the state.

Implements

IOleComponent.OnEnterState(UInt32, Int32)

Remarks

If one (or more) calls are made with fEnter equal to true, the view should consider the state to be in effect until one (or more) calls are made with fEnter equal to false. It is possible for this method to be called with fEnter equal to false more times than it was called with fEnter equal to true. If there is a state counter that is incremented when this method is called with fEnter equal to true and decremented when called with fEnter equal to false, the counter should not be decremented if it is already at zero.

.NET Framework Security

See Also

Reference

SimpleEditorView Class

Microsoft.VisualStudio.Package Namespace