EditorControl.OnAppActivate Method
Notifies the component whenever the host application is activated or deactivated.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overrides Sub OnAppActivate ( _
fActive As Integer, _
dwOtherThreadID As UInteger _
)
public override void OnAppActivate(
int fActive,
uint dwOtherThreadID
)
public:
virtual void OnAppActivate(
int fActive,
unsigned int dwOtherThreadID
) override
abstract OnAppActivate :
fActive:int *
dwOtherThreadID:uint32 -> unit
override OnAppActivate :
fActive:int *
dwOtherThreadID:uint32 -> unit
public override function OnAppActivate(
fActive : int,
dwOtherThreadID : uint
)
Parameters
fActive
Type: Int32If true, the host application is being activated, otherwise it is being deactivated.
dwOtherThreadID
Type: UInt32If 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
- 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.