Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ChannelServices::DispatchMessage Method (IServerChannelSinkStack^, IMessage^, IMessage^%)

 

Dispatches incoming remote calls.

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

public:
[SecurityCriticalAttribute]
static ServerProcessing DispatchMessage(
	IServerChannelSinkStack^ sinkStack,
	IMessage^ msg,
	[OutAttribute] IMessage^% replyMsg
)

Parameters

sinkStack
Type: System.Runtime.Remoting.Channels::IServerChannelSinkStack^

The stack of server channel sinks that the message already traversed.

msg
Type: System.Runtime.Remoting.Messaging::IMessage^

The message to dispatch.

replyMsg
Type: System.Runtime.Remoting.Messaging::IMessage^%

When this method returns, contains a IMessage that holds the reply from the server to the message that is contained in the msg parameter. This parameter is passed uninitialized.

Return Value

Type: System.Runtime.Remoting.Channels::ServerProcessing

A ServerProcessing that gives the status of the server message processing.

Exception Condition
ArgumentNullException

The msg parameter is null.

SecurityException

The immediate caller does not have infrastructure permission.

This method is used by channels to dispatch incoming remote calls.

SecurityPermission

For operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft