System.Runtime.Remoting.RemotingServices.IsOneWay Method

Returns a Boolean value that indicates whether the client that called the method specified in the given message is waiting for the server to finish processing the method before continuing execution.

Syntax

public static bool IsOneWay (System.Reflection.MethodBase method)

Parameters

method
The method in question.

Returns

true if the method is one way; otherwise, false.

Remarks

When a one-way method is called, the client does not wait for the server to finish processing the message. The client method returns to the application with no knowledge of whether or not the server will successfully process the message. Methods are marked as one way using the System.Runtime.Remoting.Messaging.OneWayAttribute.

One-way methods cannot have a return value or any out parameters.

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0