Compartir a través de


IOleComponent2 Interface

Enables components to participate in message processing while they are waiting for handles.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.9.0 (in Microsoft.VisualStudio.Shell.Interop.9.0.dll)

Syntax

'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("ED0751FC-D772-4D1D-88FC-0C1AA275391B")> _
Public Interface IOleComponent2 _
    Inherits IOleComponent
[InterfaceTypeAttribute()]
[GuidAttribute("ED0751FC-D772-4D1D-88FC-0C1AA275391B")]
public interface IOleComponent2 : IOleComponent
[InterfaceTypeAttribute()]
[GuidAttribute(L"ED0751FC-D772-4D1D-88FC-0C1AA275391B")]
public interface class IOleComponent2 : IOleComponent
[<InterfaceTypeAttribute()>]
[<GuidAttribute("ED0751FC-D772-4D1D-88FC-0C1AA275391B")>]
type IOleComponent2 =  
    interface 
        interface IOleComponent 
    end
public interface IOleComponent2 extends IOleComponent

The IOleComponent2 type exposes the following members.

Methods

  Name Description
Public method FContinueMessageLoop
Public method FDoIdle
Public method FPreTranslateMessage
Public method FQueryTerminate
Public method FReserved1
Public method GetWaitHandlesAndTimeout When overridden in a derived class, returns the time-out and the list of handles on which this component is waiting.
Public method HwndGetWindow
Public method OnActivationChange
Public method OnAppActivate
Public method OnEnterState
Public method OnHandleSignaled When overridden in a derived class, enables the component to respond to a signal on a wait handle.
Public method OnLoseActivation
Public method OnTimeout When overridden in a derived class, enables the component to respond to a time-out on the message loop.
Public method Terminate

Top

Remarks

To add the component to the message loop and receive notification of signals, call FPushMessageLoop with a uReason parameter value of oleloopModelessFormWithHandles or oleloopModelessFormWithHandlesNoIdle.

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace

IOleComponentManager

_OLELOOP2