共用方式為


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 介面,提供在分派非同步訊息之後,予以控制的方式。

屬性

例外狀況

立即呼叫者透過對介面的參考進行呼叫,且沒有基礎結構權限。

備註

這個方法是由遠端基礎結構或先前的異步訊息接收叫用在訊息接收上。

適用於