Class DataContractAttribute
Indicates that a class can be serialized.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
public class DataContractAttribute : Attribute
- Inheritance
-
Data
Contract Attribute
- Inherited Members
Constructors
DataContractAttribute()
Initializes a new instance of the Data
DataContractAttribute(string)
Initializes a new instance of the Data
Parameters
aliasName
stringThe type alias name when serializing to a textual format.
Properties
Alias
Gets or sets the alias name when serializing to a textual format.
Property Value
- string
The alias name.
DefaultMemberMode
The default member mode.
Property Value
Inherited
Gets or sets a value indicating whether this Data
Property Value
- bool
true
if inherited; otherwise,false
.