AsyncDispatchMessage Method

ChannelServices.AsyncDispatchMessage Method

Asynchronously dispatches the given message to the server-side chain(s) based on the URI embedded in the message.

[Visual Basic]
Public Shared Function AsyncDispatchMessage( _
   ByVal msg As IMessage, _
   ByVal replySink As IMessageSink _
) As IMessageCtrl
public static IMessageCtrl AsyncDispatchMessage(
 IMessage msg,
 IMessageSink replySink
public: static IMessageCtrl* AsyncDispatchMessage(
 IMessage* msg,
 IMessageSink* replySink
public static function AsyncDispatchMessage(
   msg : IMessage,
 replySink : IMessageSink
) : IMessageCtrl;


The message to dispatch.
The sink that will process the return message if it is not a null reference (Nothing in Visual Basic).

Return Value

An IMessageCtrl object used to control the asynchronously dispatched message.


Exception Type Condition
ArgumentNullException The msg parameter is a null reference (Nothing in Visual Basic).
SecurityException The immediate caller does not have infrastructure permission.


The current method returns immediately, whether the server processed the specified message or not.


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

ChannelServices Class | ChannelServices Members | System.Runtime.Remoting.Channels Namespace

© 2016 Microsoft