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.
System.Object
System.Attribute
System.Runtime.Remoting.Messaging.OneWayAttribute
[Visual Basic] <AttributeUsage(AttributeTargets.Method)> Public Class OneWayAttribute Inherits Attribute [C#] [AttributeUsage(AttributeTargets.Method)] public class OneWayAttribute : Attribute [C++] [AttributeUsage(AttributeTargets::Method)] public __gc class OneWayAttribute : public Attribute [JScript] public AttributeUsage(AttributeTargets.Method) 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.
Remarks
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.
Requirements
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