This documentation is archived and is not being maintained.

IMessageSink.AsyncProcessMessage Method

Asynchronously processes the given message.

Namespace: System.Runtime.Remoting.Messaging
Assembly: mscorlib (in mscorlib.dll)

IMessageCtrl AsyncProcessMessage (
	IMessage msg,
	IMessageSink replySink
IMessageCtrl AsyncProcessMessage (
	IMessage msg, 
	IMessageSink replySink
function AsyncProcessMessage (
	msg : IMessage, 
	replySink : IMessageSink
) : IMessageCtrl
Not applicable.



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 typeCondition


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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0