System.Runtime.Remoting.Messaging.OneWayAttribute Class

Marks a method as one way, without a return value and out or ref parameters.

See Also: OneWayAttribute Members


public class OneWayAttribute : Attribute


When one-way methods are invoked, no reply message or status or information is expected. The System.Runtime.Remoting.Messaging.OneWayAttribute is used to indicate that the method has a void return and only in parameters. The method cannot throw any exceptions, and ref parameters and return values are not supported. The method can execute synchronously or asynchronously with respect to the caller. The caller cannot make assumptions that the one-way call has executed on the server object when thread control returns.


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