This documentation is archived and is not being maintained.

ChannelServices.AsyncDispatchMessage Method

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

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

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
Not applicable.

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

A IMessageCtrl object used to control the asynchronously dispatched message.

Exception typeCondition

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.

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
Show: