SyncProcessMessage Method
Collapse the table of content
Expand the table of content

AsyncResult.SyncProcessMessage Method

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

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

public virtual IMessage SyncProcessMessage (
	IMessage msg
)
public IMessage SyncProcessMessage (
	IMessage msg
)
public function SyncProcessMessage (
	msg : IMessage
) : IMessage
Not applicable.

Parameters

msg

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

Return Value

Returns a null reference (Nothing in Visual Basic).

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.

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

Community Additions

ADD
Show:
© 2016 Microsoft