We recommend using Visual Studio 2017

CommonMessagePump.IOleComponent2Private.OnActivationChange Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Called when a new object is being activated.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

void IOleComponent2Private.OnActivationChange(
	IOleComponent pic,
	int fSameComponent,
	OLECRINFO[] pcrinfo,
	int fHostIsActivating,
	OLECHOSTINFO[] pchostinfo,
	uint dwReserved
)

Parameters

pic
Type: Microsoft.VisualStudio.OLE.Interop.IOleComponent

An IOleComponent, or null.

fSameComponent
Type: System.Int32

true if pic is the same component as the callee of this method, otherwise false.

pcrinfo
Type: Microsoft.VisualStudio.OLE.Interop.OLECRINFO[]

An array of OLECRINFO structures, which represent registry information for pic.

fHostIsActivating
Type: System.Int32

true if the host is being activated, otherwise false.

pchostinfo
Type: Microsoft.VisualStudio.OLE.Interop.OLECHOSTINFO[]

An array of OLECHOSTINFO structures, which represent host information.

dwReserved
Type: System.UInt32

Reserved.

Implements

IOleComponent2Private.OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)

Show: