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
[C#]
public static IMessageCtrl AsyncDispatchMessage(
 IMessage msg,
 IMessageSink replySink
);
[C++]
public: static IMessageCtrl* AsyncDispatchMessage(
 IMessage* msg,
 IMessageSink* replySink
);
[JScript]
public static function AsyncDispatchMessage(
   msg : IMessage,
 replySink : IMessageSink
) : IMessageCtrl;

Parameters

msg
The message to dispatch.
replySink
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.

Exceptions

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

Remarks

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

Requirements

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

Show:
© 2016 Microsoft