This documentation is archived and is not being maintained.

OneWayAttribute Class

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

For a list of all members of this type, see OneWayAttribute Members.


[Visual Basic]
Public Class OneWayAttribute
   Inherits Attribute
public class OneWayAttribute : Attribute
public __gc class OneWayAttribute : public Attribute
class OneWayAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


When one-way methods are invoked, no reply message or status or information is expected. The OneWayAttribute is used to indicate that the method has a void return and only in parameters. The method is 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

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

OneWayAttribute Members | System.Runtime.Remoting.Messaging Namespace