共用方式為


SingleTaskIdleManager.IOleComponent.OnActivationChange Method

Notifies the component when a new object is being activated.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
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
)

Parameters

  • fSameComponent
    Type: System.Int32
    true if pic is the same as the caller of this method, otherwise false.
  • fHostIsActivating
    Type: System.Int32
    true if the host that is being activated, otherwise false.

Implements

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

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

See Also

Reference

SingleTaskIdleManager Class

Microsoft.VisualStudio.Shell Namespace