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

Syntax

[System.AttributeUsage(System.AttributeTargets.Method)]
[System.Runtime.InteropServices.ComVisible(true)]
public class OneWayAttribute : Attribute

Remarks

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.

Requirements

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