Click or drag to resize
ServiceContractAttribute Class
Indicates that an interface or a class defines a service contract in a Windows Communication Foundation (WCF) application.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    System.ServiceModelServiceContractAttribute

Namespace: System.ServiceModel
Assembly: CSharpXamlForHtml5.System.ServiceModel.dll (in CSharpXamlForHtml5.System.ServiceModel.dll.dll) Version: 1.0.0.0
Syntax
C#
public sealed class ServiceContractAttribute : Attribute

The ServiceContractAttribute type exposes the following members.

Constructors
  NameDescription
Public methodServiceContractAttribute
Initializes a new instance of the System.ServiceModel.ServiceContractAttribute class.
Top
Methods
  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCallbackContract
Gets or sets the type of callback contract when the contract is a duplex contract.
Public propertyConfigurationName
The name used to locate the service element in an application configuration file. The default is the name of the service implementation class.
Public propertyName
Gets or sets the name for the <portType> element in Web Services Description Language (WSDL).
Public propertyNamespace
Gets or sets the namespace of the <portType> element in Web Services Description Language (WSDL).
Top
See Also