SimpleEditorView.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)
Syntax
'Dichiarazione
Public Overridable Sub OnAppActivate ( _
fActive As Integer, _
dwOtherThreadID As UInteger _
)
'Utilizzo
Dim instance As SimpleEditorView
Dim fActive As Integer
Dim dwOtherThreadID As UInteger
instance.OnAppActivate(fActive, dwOtherThreadID)
public virtual void OnAppActivate(
int fActive,
uint dwOtherThreadID
)
public:
virtual void OnAppActivate(
int fActive,
unsigned int dwOtherThreadID
)
abstract OnAppActivate :
fActive:int *
dwOtherThreadID:uint32 -> unit
override OnAppActivate :
fActive:int *
dwOtherThreadID:uint32 -> unit
public function OnAppActivate(
fActive : int,
dwOtherThreadID : uint
)
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
- 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.