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
- reason
Type: Microsoft.VisualStudio.OLE.Interop._OLELOOP
Reason of the message loop.
- pvLoopData
Type: System.IntPtr
Private data for the loop.
Return Value
Type: System.Int32
.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.
See Also
Reference
Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace