Class DataMemberAttribute
Specify the way to store a property or field of some class or structure.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class DataMemberAttribute : Attribute
- Inheritance
-
DataMemberAttribute
- Inherited Members
Constructors
DataMemberAttribute()
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute()
DataMemberAttribute(DataMemberMode)
Specify the way to store a property or field of some class or structure.
public DataMemberAttribute(DataMemberMode mode)
Parameters
mode
DataMemberModeThe serialize method.
DataMemberAttribute(int)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order)
Parameters
order
intThe order.
DataMemberAttribute(int, DataMemberMode)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order, DataMemberMode mode)
Parameters
order
intThe order.
mode
DataMemberModeThe mode.
DataMemberAttribute(int, string)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order, string name)
Parameters
DataMemberAttribute(int, string, DataMemberMode)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order, string name, DataMemberMode mode)
Parameters
order
intThe order.
name
stringThe name.
mode
DataMemberModeThe mode.
DataMemberAttribute(string)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(string name)
Parameters
name
stringThe name.
DataMemberAttribute(string, DataMemberMode)
Specify the way to store a property or field of some class or structure.
public DataMemberAttribute(string name, DataMemberMode mode)
Parameters
name
stringThe name.
mode
DataMemberModeThe serialize method.
Fields
DefaultMask
public const uint DefaultMask = 1
Field Value
IgnoreMask
public const uint IgnoreMask = 4026531840
Field Value
Properties
Mask
Gets or sets the mask to filter out members.
public uint Mask { get; set; }
Property Value
- uint
The mask.
Mode
Gets the serialize method1.
public DataMemberMode Mode { get; }
Property Value
- DataMemberMode
The serialize method1.
Name
Gets the name.
public string Name { get; }
Property Value
- string
The name.
Order
Gets or sets the order. Default is -1 (default to alphabetical)
public int? Order { get; set; }
Property Value
- int?
The order.