Share via


DataContractAttribute Class

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

Specifies that the type defines or implements a data contract and is serializable by a serializer, such as the DataContractSerializer.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .Attribute
    Ws.ServiceModel..::..DataContractAttribute

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

Syntax

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

The DataContractAttribute type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Name Gets or sets the name of the data contract for the type.
Public property Namespace Gets or sets the namespace for the data contract for the type.

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