Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DataMemberAttribute Class

    Namespace: Stride.Core
    Assembly: Stride.Core.dll

    Specify the way to store a property or field of some class or structure.

    System.Object → System.Attribute → DataMemberAttribute
    Derived from DataMemberAttribute:

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

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    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.


    Inherited Members

    System.Attribute.Equals(System.Object)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.GetHashCode()
    System.Attribute.IsDefaultAttribute()
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
    System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type)
    System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
    System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
    System.Attribute.Match(System.Object)
    System.Attribute.TypeId

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation