This documentation is archived and is not being maintained.

IMessageSink.AsyncProcessMessage Method

Asynchronously processes the given message.

[Visual Basic]
Function AsyncProcessMessage( _
   ByVal msg As IMessage, _
   ByVal replySink As IMessageSink _
) As IMessageCtrl
IMessageCtrl AsyncProcessMessage(
   IMessage msg,
 IMessageSink replySink
IMessageCtrl* AsyncProcessMessage(
   IMessage* msg,
 IMessageSink* replySink
function AsyncProcessMessage(
   msg : IMessage,
 replySink : IMessageSink
) : IMessageCtrl;


The message to process.
The reply sink for the reply message.

Return Value

Returns an IMessageCtrl interface that provides a way to control asynchronous messages after they have been dispatched.


Exception Type Condition
SecurityException The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.


This method is invoked on the message sink by the remoting infrastructure or by a previous sink for asynchronous messages.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

IMessageSink Interface | IMessageSink Members | System.Runtime.Remoting.Messaging Namespace