OperationContractAttribute Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Indicates that a method defines an operation that is part of a service contract in an application.
Inheritance Hierarchy
System. . :: . .Object
System. . :: . .Attribute
Ws.ServiceModel..::..OperationContractAttribute
Namespace: Ws.ServiceModel
Assembly: MFWsStack (in MFWsStack.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Method)> _
Public NotInheritable Class OperationContractAttribute _
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Method)]
public sealed class OperationContractAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method)]
public ref class OperationContractAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Method)>]
type OperationContractAttribute =
class
inherit Attribute
end
public final class OperationContractAttribute extends Attribute
The OperationContractAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
OperationContractAttribute | Initializes a new instance of the OperationContractAttribute class. |
Top
Properties
Name | Description | |
---|---|---|
Action | Gets or sets the Web Services Addressing action of the request message. | |
IsOneWay | Gets or sets a value that indicates whether an operation returns a reply message. | |
Name | Gets or sets the name of the operation. | |
ReplyAction | Gets or sets the value of the SOAP action for the reply message of the operation. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
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.