Class DataContractMetadataTypeAttribute
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 DefaultValueAttribute.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class DataContractMetadataTypeAttribute : Attribute
- Inheritance
-
DataContractMetadataTypeAttribute
- Inherited Members
Constructors
DataContractMetadataTypeAttribute(Type)
Initializes a new instance of the DataContractMetadataTypeAttribute class.
public DataContractMetadataTypeAttribute(Type metadataClassType)
Parameters
metadataClassType
TypeThe type alias name when serializing to a textual format.
Exceptions
- ArgumentException
metadataClassType
isnull
Properties
MetadataClassType
Gets the metadata class that is associated with a serializable class.
public Type MetadataClassType { get; }