Επεξεργασία

Κοινή χρήση μέσω


AsyncResult.SyncProcessMessage(IMessage) Method

Definition

Synchronously processes a response message returned by a method call on a remote object.

public:
 virtual System::Runtime::Remoting::Messaging::IMessage ^ SyncProcessMessage(System::Runtime::Remoting::Messaging::IMessage ^ msg);
public virtual System.Runtime.Remoting.Messaging.IMessage SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage msg);
[System.Security.SecurityCritical]
public virtual System.Runtime.Remoting.Messaging.IMessage SyncProcessMessage (System.Runtime.Remoting.Messaging.IMessage msg);
abstract member SyncProcessMessage : System.Runtime.Remoting.Messaging.IMessage -> System.Runtime.Remoting.Messaging.IMessage
override this.SyncProcessMessage : System.Runtime.Remoting.Messaging.IMessage -> System.Runtime.Remoting.Messaging.IMessage
[<System.Security.SecurityCritical>]
abstract member SyncProcessMessage : System.Runtime.Remoting.Messaging.IMessage -> System.Runtime.Remoting.Messaging.IMessage
override this.SyncProcessMessage : System.Runtime.Remoting.Messaging.IMessage -> System.Runtime.Remoting.Messaging.IMessage
Public Overridable Function SyncProcessMessage (msg As IMessage) As IMessage

Parameters

msg
IMessage

A response message to a method call on a remote object.

Returns

Returns null.

Implements

Attributes

Remarks

The SyncProcessMessage method implements the IMessageSink interface. You do not need to call this method directly. It is intended for use by the remoting infrastructure of the .NET Framework.

SyncProcessMessage invokes the consumer code's AsyncCallback delegate. It also sets the IMethodReturnMessage instance returned by the GetReplyMessage method. If the msg parameter is of type IMethodReturnMessage, the same object is returned by GetReplyMessage. Otherwise, a reply message that contains a remoting exception is returned.

SyncProcessMessage also modifies the value returned by the IsCompleted property.

Applies to