Note: This API is now obsolete.
|RaiseEventsViaMessageLoop property must be set to false prior to using this method. This is required in order to switch event marshaling mechanism from sending events to the application message loop to the internal thread-independent event processor.|
Usually, when the developer uses asynchronous methods which might raise events, it's not possible to use methods like WaitOne(Int32, Boolean), since they would block the message loop and thus prevent events (which are raised on the message loop thread) from getting processed. method provides an alternative approach which addresses the problem.
Another alternative (in WinForms application) to using BeginExecuteCustomCommand(String, String, AsyncCallback, Object) method for the code example.method is to never block the application message loop. See