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

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


<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
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum, Inherited = false, 
    AllowMultiple = false)>]
type DataContractAttribute =  
        inherit Attribute
public final class DataContractAttribute extends Attribute

The DataContractAttribute type exposes the following members.


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



  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.



  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.)


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


Ws.ServiceModel Namespace