DataContractMetadataTypeAttribute Class
Namespace: Stride.CoreAssembly: Stride.Core.dll
Specifies the metadata class to associate with a serializable class. The main usage of this class is to allow a sub-class to override property attributes such as System.ComponentModel.DefaultValueAttribute.
                 System.Object →  System.Attribute →  
                DataContractMetadataTypeAttribute
              
              
                 Derived from DataContractMetadataTypeAttribute: 
              
              
              
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class DataContractMetadataTypeAttribute : Attribute
              | Name | Description | |
|---|---|---|
| Constructors | ||
| DataContractMetadataTypeAttribute(Type) | Initializes a new instance of the DataContractMetadataTypeAttribute class.  | 
                          |
| Properties | ||
| MetadataClassType | Gets the metadata class that is associated with a serializable class.  | 
                          |
Constructors
DataContractMetadataTypeAttribute(Type)
Initializes a new instance of the DataContractMetadataTypeAttribute class.
public DataContractMetadataTypeAttribute(Type metadataClassType)
              Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | metadataClassType | The type alias name when serializing to a textual format.  | 
                  
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentException | 
  | 
                  
Properties
MetadataClassType
Gets the metadata class that is associated with a serializable class.
public Type MetadataClassType { get; }
              Property Value
| Type | Description | 
|---|---|
| System.Type | 
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