Partager via


OleComponent.PushMessageLoop Method

Pushes this component to the OleComonentManager as the message loop handler by calling FPushMessageLoop. Message loop blocks until an ContinueMessageLoop handler sets the ContinuePumping /// to false.

Namespace:  Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

Syntax

'Déclaration
Public Function PushMessageLoop ( _
    reason As _OLELOOP, _
    pvLoopData As IntPtr _
) As Integer
'Utilisation
Dim instance As OleComponent
Dim reason As _OLELOOP
Dim pvLoopData As IntPtr
Dim returnValue As Integer

returnValue = instance.PushMessageLoop(reason, _
    pvLoopData)
public int PushMessageLoop(
    _OLELOOP reason,
    IntPtr pvLoopData
)
public:
int PushMessageLoop(
    _OLELOOP reason, 
    IntPtr pvLoopData
)
member PushMessageLoop : 
        reason:_OLELOOP * 
        pvLoopData:IntPtr -> int 
public function PushMessageLoop(
    reason : _OLELOOP, 
    pvLoopData : IntPtr
) : int

Parameters

Return Value

Type: System.Int32

.NET Framework Security

See Also

Reference

OleComponent Class

OleComponent Members

Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace