Share via


ServiceContractAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Indicates that an interface or a class defines a service contract in an application.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .Attribute
    Ws.ServiceModel..::..ServiceContractAttribute

Namespace:  Ws.ServiceModel
Assembly:  MFWsStack (in MFWsStack.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface, Inherited := False,  _
    AllowMultiple := False)> _
Public NotInheritable Class ServiceContractAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, Inherited = false, 
    AllowMultiple = false)]
public sealed class ServiceContractAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Interface, Inherited = false, 
    AllowMultiple = false)]
public ref class ServiceContractAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, Inherited = false, 
    AllowMultiple = false)>]
type ServiceContractAttribute =  
    class
        inherit Attribute
    end
public final class ServiceContractAttribute extends Attribute

The ServiceContractAttribute type exposes the following members.

Constructors

  Name Description
Public method ServiceContractAttribute Initializes a new instance of the ServiceContractAttribute class.

Top

Properties

  Name Description
Public property CallbackContract
Public property Name Gets or sets the name of the portType element in Web Services Description Language (WSDL).
Public property Namespace Gets or sets the namespace of the portType element in Web Services Description Language (WSDL).

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method 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.

See Also

Reference

Ws.ServiceModel Namespace