SingleTaskIdleManager.IOleComponent.OnActivationChange Method
Notifies the component when a new object is being activated.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Private Sub OnActivationChange ( _
pic As IOleComponent, _
fSameComponent As Integer, _
pcrinfo As OLECRINFO(), _
fHostIsActivating As Integer, _
pchostinfo As OLECHOSTINFO(), _
dwReserved As UInteger _
) Implements IOleComponent.OnActivationChange
void IOleComponent.OnActivationChange(
IOleComponent pic,
int fSameComponent,
OLECRINFO[] pcrinfo,
int fHostIsActivating,
OLECHOSTINFO[] pchostinfo,
uint dwReserved
)
private:
virtual void OnActivationChange(
IOleComponent^ pic,
int fSameComponent,
array<OLECRINFO>^ pcrinfo,
int fHostIsActivating,
array<OLECHOSTINFO>^ pchostinfo,
unsigned int dwReserved
) sealed = IOleComponent::OnActivationChange
private abstract OnActivationChange :
pic:IOleComponent *
fSameComponent:int *
pcrinfo:OLECRINFO[] *
fHostIsActivating:int *
pchostinfo:OLECHOSTINFO[] *
dwReserved:uint32 -> unit
private override OnActivationChange :
pic:IOleComponent *
fSameComponent:int *
pcrinfo:OLECRINFO[] *
fHostIsActivating:int *
pchostinfo:OLECHOSTINFO[] *
dwReserved:uint32 -> unit
JScript does not support explicit interface implementations.
Parameters
pic
Type: Microsoft.VisualStudio.OLE.Interop.IOleComponentThe component that is being activated.
fSameComponent
Type: Int32true if pic is the same as the caller of this method, otherwise false.
pcrinfo
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECRINFO[]The component registration information.
fHostIsActivating
Type: Int32true if the host that is being activated, otherwise false.
pchostinfo
Type: array<Microsoft.VisualStudio.OLE.Interop.OLECHOSTINFO[]The OLE host information.
dwReserved
Type: UInt32Reserved.
Implements
Remarks
If pic is non-null, then it is the component that is being activated. In this case, fSameComponent is true if pic is the same component as the caller of this method, and pcrinfo is the registry information of pic. If pic is null and fHostIsActivating is true, then the host is the object being activated, and pchostinfo is its host information. If pic is null and fHostIsActivating is false, then there is no current active object.
.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.