DataMemberAttribute Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Specify the way to store a property or field of some class or structure.
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class DataMemberAttribute : Attribute
              | Name | Description | |
|---|---|---|
| Constructors | ||
| DataMemberAttribute() | Initializes a new instance of the DataMemberAttribute class.  | 
                          |
| DataMemberAttribute(DataMemberMode) | Specify the way to store a property or field of some class or structure.  | 
                          |
| DataMemberAttribute(Int32) | Initializes a new instance of the DataMemberAttribute class.  | 
                          |
| DataMemberAttribute(Int32, DataMemberMode) | Initializes a new instance of the DataMemberAttribute class.  | 
                          |
| DataMemberAttribute(Int32, String) | Initializes a new instance of the DataMemberAttribute class.  | 
                          |
| DataMemberAttribute(Int32, String, DataMemberMode) | Initializes a new instance of the DataMemberAttribute class.  | 
                          |
| DataMemberAttribute(String) | Initializes a new instance of the DataMemberAttribute class.  | 
                          |
| DataMemberAttribute(String, DataMemberMode) | Specify the way to store a property or field of some class or structure.  | 
                          |
| Fields | ||
| DefaultMask | ||
| IgnoreMask | ||
| Properties | ||
| Mask | Gets or sets the mask to filter out members.  | 
                          |
| Mode | Gets the serialize method1.  | 
                          |
| Name | Gets the name.  | 
                          |
| Order | Gets or sets the order. Default is -1 (default to alphabetical)  | 
                          |
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
| Type | Name | Description | 
|---|---|---|
| DataMemberMode | mode | The serialize method.  | 
                  
DataMemberAttribute(Int32)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | order | The order.  | 
                  
DataMemberAttribute(Int32, DataMemberMode)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order, DataMemberMode mode)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | order | The order.  | 
                  
| DataMemberMode | mode | The mode.  | 
                  
DataMemberAttribute(Int32, String)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order, string name)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | order | The order.  | 
                  
| System.String | name | The name.  | 
                  
DataMemberAttribute(Int32, String, DataMemberMode)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(int order, string name, DataMemberMode mode)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | order | The order.  | 
                  
| System.String | name | The name.  | 
                  
| DataMemberMode | mode | The mode.  | 
                  
DataMemberAttribute(String)
Initializes a new instance of the DataMemberAttribute class.
public DataMemberAttribute(string name)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The 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
| Type | Name | Description | 
|---|---|---|
| System.String | name | The name.  | 
                  
| DataMemberMode | mode | The serialize method.  | 
                  
Fields
DefaultMask
public const uint DefaultMask = 1U
              Field Value
| Type | Description | 
|---|---|
| System.UInt32 | 
IgnoreMask
public const uint IgnoreMask = 4026531840U
              Field Value
| Type | Description | 
|---|---|
| System.UInt32 | 
Properties
Mask
Gets or sets the mask to filter out members.
public uint Mask { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.UInt32 | The mask.  | 
                  
Mode
Gets the serialize method1.
public DataMemberMode Mode { get; }
              Property Value
| Type | Description | 
|---|---|
| DataMemberMode | The serialize method1.  | 
                  
Name
Gets the name.
public string Name { get; }
              Property Value
| Type | Description | 
|---|---|
| System.String | The name.  | 
                  
Order
Gets or sets the order. Default is -1 (default to alphabetical)
public int? Order { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Int32> | The order.  |