IMessageSink.AsyncProcessMessage(IMessage, IMessageSink) 方法

定义

异步处理给定的消息。

public:
 System::Runtime::Remoting::Messaging::IMessageCtrl ^ AsyncProcessMessage(System::Runtime::Remoting::Messaging::IMessage ^ msg, System::Runtime::Remoting::Messaging::IMessageSink ^ replySink);
public System.Runtime.Remoting.Messaging.IMessageCtrl AsyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Messaging.IMessageSink replySink);
[System.Security.SecurityCritical]
public System.Runtime.Remoting.Messaging.IMessageCtrl AsyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Messaging.IMessageSink replySink);
abstract member AsyncProcessMessage : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Messaging.IMessageSink -> System.Runtime.Remoting.Messaging.IMessageCtrl
[<System.Security.SecurityCritical>]
abstract member AsyncProcessMessage : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Messaging.IMessageSink -> System.Runtime.Remoting.Messaging.IMessageCtrl
Public Function AsyncProcessMessage (msg As IMessage, replySink As IMessageSink) As IMessageCtrl

参数

msg
IMessage

要处理的消息。

replySink
IMessageSink

答复消息的答复接收器。

返回

一个 IMessageCtrl 接口,它提供了一种在调度异步消息之后控制这些消息的方法。

属性

例外

直接调用方通过引用接口进行调用,且没有基础结构权限。

注解

此方法由远程处理基础结构或异步消息的上一个接收器在消息接收器上调用。

适用于