Compartilhar via


EditorControl.OnAppActivate Method

Notifies the component whenever the host application is activated or deactivated.

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)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaração
Public Overrides Sub OnAppActivate ( _
    fActive As Integer, _
    dwOtherThreadID As UInteger _
)
public override void OnAppActivate(
    int fActive,
    uint dwOtherThreadID
)

Parameters

  • fActive
    Type: System.Int32
    If true, the host application is being activated, otherwise it is being deactivated.
  • dwOtherThreadID
    Type: System.UInt32
    If the host application is being activated, the ID of the thread that owns the window being deactivated. If the host application is being deactivated, the ID of the thread owning the window being activated.

Implements

IOleComponent.OnAppActivate(Int32, UInt32)

Remarks

By default this method does nothing.

This method is not called when both the window being activated and the one being deactivated belong to the host application.

.NET Framework Security

See Also

Reference

EditorControl Class

Microsoft.VisualStudio.Package Namespace