DataMemberAttribute Class |
Namespace: System.Runtime.Serialization
public sealed class DataMemberAttribute : Attribute
The DataMemberAttribute type exposes the following members.
Name | Description | |
---|---|---|
DataMemberAttribute |
Initializes a new instance of the System.Runtime.Serialization.DataMemberAttribute
class.
|
Name | Description | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
EmitDefaultValue |
Gets or sets a value that specifies whether to serialize the default value
for a field or property being serialized.
| |
IsRequired |
Gets or sets a value that instructs the serialization engine that the member
must be present when reading or deserializing.
| |
Name |
Gets or sets a data member name.
| |
Order |
Gets or sets the order of serialization and deserialization of a member.
|